feat:增加设置模块

This commit is contained in:
2025-06-23 22:42:01 +08:00
parent e09aed87d1
commit 4956c1822e
14 changed files with 184 additions and 8 deletions

View File

@@ -1,8 +1,26 @@
<template>
<app-loading ref="loadingRef"/>
<router-view />
</template>
<script setup lang="ts">
import AppLoading from '@/components/AppLoading.vue'
import { useAppStore } from '@/store/app.ts'
import { useRouter } from 'vue-router'
const appStore = useAppStore()
const router = useRouter()
appStore.initApp()
router.beforeEach((to, from, next) => {
appStore.isLoading = true
next()
})
router.afterEach(() => {
appStore.isLoading = false
})
</script>
<style lang="scss">