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 | 31 ++++++++++++++++++++++++++++--- 1 files changed, 28 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 41ffdd4..a320e34 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,17 +5,42 @@ </template> <script setup lang="ts"> + +import axios from 'axios'; import useSettingsStore from '@/store/modules/settings' import { handleThemeStyle } from '@/utils/theme' import useAppStore from '@/store/modules/app'; - +import { createUser } from "@/api/system/oss"; +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); -onMounted(() => { - nextTick(() => { + + + + + +onMounted(async () => { + + await nextTick(() => { // 鍒濆鍖栦富棰樻牱寮� handleThemeStyle(useSettingsStore().theme) }) +// initVconsole() + }) </script> -- Gitblit v1.8.0