From fd402c5b5850c995241cceaa0c2fedda2fdf3a98 Mon Sep 17 00:00:00 2001 From: Burt <1020103647@qq.com> Date: Wed, 24 Jan 2024 14:13:45 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"build:=20lang=3D"json5"=20=E6=98=AF?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=EF=BC=8C=E4=B8=8D=E7=94=A8=E5=86=99?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a95028f608a2b5788c2b26e17f3526f1126f01fe. --- .vscode/vue3.code-snippets | 2 +- src/pages/index/index.vue | 4 ++-- vite.config.ts | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.vscode/vue3.code-snippets b/.vscode/vue3.code-snippets index 1643fe1..08557ed 100644 --- a/.vscode/vue3.code-snippets +++ b/.vscode/vue3.code-snippets @@ -20,7 +20,7 @@ "scope": "vue", "prefix": "v3", "body": [ - "", + "", "{", " style: { navigationBarTitleText: '$1' },", "}", diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index fa57389..2229ccb 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,5 +1,5 @@ - - + + { style: { navigationStyle: 'custom', diff --git a/vite.config.ts b/vite.config.ts index 07b2c6d..431e4df 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -50,9 +50,8 @@ export default ({ command, mode }) => { plugins: [ UniPages({ exclude: ['**/components/**/**.*'], - // routeBlockLang: 'json5', - // homePage: 'pages/index/index', - subPackages: ['src/pages-sub'], // 是一个数组,可以设置多个 + homePage: 'pages/index/index', + subPackages: ['src/pages-sub'], }), UniLayouts(), UniPlatform(),