From ade0a9866acd10139562ca5b093873781ddb93ae Mon Sep 17 00:00:00 2001 From: qirong <2032486488@qq.com> Date: 星期二, 09 一月 2024 17:43:14 +0800 Subject: [PATCH] app --- src/App.vue | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index 4eaa6b3..a320e34 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,6 +5,7 @@ </template> <script setup lang="ts"> + import axios from 'axios'; import useSettingsStore from '@/store/modules/settings' import { handleThemeStyle } from '@/utils/theme' @@ -13,12 +14,20 @@ import { setToken } from "@/utils/auth"; import usePermissionStore from "@/store/modules/permission"; import { isHttp } from "@/utils/validate"; +import VConsole from 'vconsole' +let vc: any = null; +const initVconsole = () => { + console.log('vcvcvvcvc') + // if (env.currentEnv !== env.ENV_ENUM.PRODUCT) { + vc = new VConsole({ + disableLogScrolling: false, + defaultPlugins: ["system", "network"], + log: { maxLogNumber: 200 }, + }); + // } +}; const appStore = useAppStore(); const size = computed(() => appStore.size as any); - -import router from './router'; -import { to as tos } from "await-to-js"; -import useUserStore from "@/store/modules/user"; @@ -31,5 +40,7 @@ // 鍒濆鍖栦富棰樻牱寮� handleThemeStyle(useSettingsStore().theme) }) +// initVconsole() + }) </script> -- Gitblit v1.8.0