<template>
|
<el-config-provider :locale="appStore.locale" :size="size">
|
<router-view />
|
</el-config-provider>
|
</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(async () => {
|
|
await nextTick(() => {
|
// 初始化主题样式
|
handleThemeStyle(useSettingsStore().theme)
|
})
|
// initVconsole()
|
|
})
|
</script>
|