From fa7a811dd78333a4e139ebbc168199fdfc32e26a Mon Sep 17 00:00:00 2001 From: xuminyui <576362016@qq.com> Date: Thu, 24 Oct 2024 13:57:52 +0800 Subject: [PATCH] fix --- src/main.js | 3 +-- src/pages.json | 15 ++++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main.js b/src/main.js index c8c0a83..82fd1fe 100644 --- a/src/main.js +++ b/src/main.js @@ -3,8 +3,7 @@ import App from "./App.vue"; import uviewPlus from "uview-plus"; import globalComponents from "./components"; import VConsole from "vconsole"; -const token = window?.plus?.storage.getItemAsync("token"); -uni.setStorageSync("token", token); + if (import.meta.env.VITE_APP_MODE === "dev") { new VConsole(); } diff --git a/src/pages.json b/src/pages.json index d6ed259..d01a9c4 100644 --- a/src/pages.json +++ b/src/pages.json @@ -9,13 +9,7 @@ } }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - { - "path": "pages/login/index", - "style": { - "navigationBarTitleText": "登录", - "enablePullDownRefresh": false - } - }, + { "path": "pages/index/index", "style": { @@ -23,6 +17,13 @@ "enablePullDownRefresh": false } }, + { + "path": "pages/login/index", + "style": { + "navigationBarTitleText": "登录", + "enablePullDownRefresh": false + } + }, { "path": "pages/painting/index", "style": {