first commit
This commit is contained in:
48
pages.config.ts
Normal file
48
pages.config.ts
Normal file
@@ -0,0 +1,48 @@
|
||||
import path from 'node:path'
|
||||
import process from 'node:process'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { readRuntimeConfig } from './src/config/runtimeConfig.node'
|
||||
import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
|
||||
|
||||
const projectRoot = path.dirname(fileURLToPath(import.meta.url))
|
||||
const mode = process.env.NODE_ENV === 'production' ? 'production' : 'development'
|
||||
const rc = readRuntimeConfig(projectRoot, mode)
|
||||
const appName = rc.appName
|
||||
|
||||
export default defineUniPages({
|
||||
pages: [],
|
||||
globalStyle: {
|
||||
backgroundColor: '@bgColor',
|
||||
backgroundColorBottom: '@bgColorBottom',
|
||||
backgroundColorTop: '@bgColorTop',
|
||||
backgroundTextStyle: '@bgTxtStyle',
|
||||
navigationBarBackgroundColor: '#000000',
|
||||
navigationBarTextStyle: '@navTxtStyle',
|
||||
navigationBarTitleText: appName,
|
||||
navigationStyle: 'custom',
|
||||
},
|
||||
|
||||
tabBar: {
|
||||
backgroundColor: '@tabBgColor',
|
||||
borderStyle: '@tabBorderStyle',
|
||||
color: '@tabFontColor',
|
||||
selectedColor: '@tabSelectedColor',
|
||||
list: [
|
||||
{
|
||||
pagePath: 'pages/index',
|
||||
text: '',
|
||||
visible: false,
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/agent',
|
||||
text: '',
|
||||
visible: false,
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/me',
|
||||
text: '',
|
||||
visible: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user