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 | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/src/App.vue b/src/App.vue index a124b45..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,6 +14,18 @@ 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); @@ -27,5 +40,7 @@ // 鍒濆鍖栦富棰樻牱寮� handleThemeStyle(useSettingsStore().theme) }) +// initVconsole() + }) </script> -- Gitblit v1.8.0