fix(pages): fix globalStyle 配置错误

This commit is contained in:
Burt 2024-01-04 10:42:11 +08:00
parent 3e0899107e
commit 8b5d543fc9
2 changed files with 9 additions and 5 deletions

View File

@ -2,8 +2,10 @@ import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
export default defineUniPages({ export default defineUniPages({
globalStyle: { globalStyle: {
navigationStyle: 'white', navigationStyle: 'default',
navigationBarTitleText: 'vue3-uniapp', navigationBarTitleText: 'vue3-uniapp',
navigationBarBackgroundColor: '#f8f8f8',
navigationBarTextStyle: 'black',
}, },
easycom: { easycom: {
autoscan: true, autoscan: true,
@ -43,7 +45,7 @@ export default defineUniPages({
* dir subPackagescomponents里面的文件排除掉 * dir subPackagescomponents里面的文件排除掉
* @default [] * @default []
*/ */
exclude: ['**/components/**/**.*', '**/components/**.*', 'pages/index/components/demo'], exclude: ['components/**/**.*', 'components/**.*', 'pages/index/components/demo'],
/** /**
* subPackages src/pages-sub * subPackages src/pages-sub
* @type SubPackage[] | undefined * @type SubPackage[] | undefined

View File

@ -1,7 +1,9 @@
{ {
"globalStyle": { "globalStyle": {
"navigationStyle": "white", "navigationStyle": "default",
"navigationBarTitleText": "vue3-uniapp" "navigationBarTitleText": "vue3-uniapp",
"navigationBarBackgroundColor": "#f8f8f8",
"navigationBarTextStyle": "black"
}, },
"easycom": { "easycom": {
"autoscan": true, "autoscan": true,
@ -68,6 +70,6 @@
"type": "page" "type": "page"
} }
], ],
"exclude": ["**/components/**/**.*", "**/components/**.*", "pages/index/components/demo"], "exclude": ["components/**/**.*", "components/**.*", "pages/index/components/demo"],
"subPackages": [] "subPackages": []
} }