qirong
2024-02-28 f2ca7c5f9fbc4201b5a5bb490e43b1615b6a0dda
src/App.vue
@@ -5,15 +5,25 @@
</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";
const appStore = useAppStore();
const size = computed(() => appStore.size as any);
onMounted(() => {
  nextTick(() => {
onMounted(async () => {
  await nextTick(() => {
    // 初始化主题样式
    handleThemeStyle(useSettingsStore().theme)
  })