mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-07-30 08:01:45 +08:00
refactor: 修改为同步请求
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import 'vue-sonner/style.css'
|
||||
import { KeepAlive, onMounted, watch } from 'vue'
|
||||
import { RouterView, useRouter } from 'vue-router'
|
||||
import { useAuthStore } from '@/stores/auth'
|
||||
import { useSystemStore } from '@/stores/system'
|
||||
import { Toaster } from '@/components/ui/sonner'
|
||||
|
||||
const router = useRouter()
|
||||
const authStore = useAuthStore()
|
||||
@@ -54,4 +56,5 @@ watch(
|
||||
</KeepAlive>
|
||||
<component :is="Component" v-if="route.name !== 'Console' || !authStore.isAuthenticated" />
|
||||
</RouterView>
|
||||
<Toaster rich-colors close-button position="top-center" />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user