2023-04-17 15:20:49 +00:00
|
|
|
// core
|
2023-05-02 15:22:46 +00:00
|
|
|
import { createApp } from 'vue'
|
|
|
|
// APP
|
|
|
|
import App from './App.vue'
|
2023-04-20 15:34:48 +00:00
|
|
|
/* 引入 vue-router */
|
2023-05-02 15:22:46 +00:00
|
|
|
import router from './router'
|
2023-04-20 15:34:48 +00:00
|
|
|
/* 引入 Pinia */
|
2023-05-02 15:22:46 +00:00
|
|
|
import { createPinia } from 'pinia'
|
2023-05-19 18:23:25 +00:00
|
|
|
// 引入 css 动画
|
2023-05-17 15:56:47 +00:00
|
|
|
import 'animate.css'
|
2023-05-19 18:23:25 +00:00
|
|
|
// 引入 i18n
|
|
|
|
import i18n from '@/language/i18n'
|
2023-05-28 17:16:19 +00:00
|
|
|
// 导入路由守卫
|
|
|
|
import { setupRouterGuard } from '@/router/guard'
|
2023-05-29 02:44:32 +00:00
|
|
|
// 导入 TanStack Query V4
|
|
|
|
import { VueQueryPlugin } from '@tanstack/vue-query'
|
2023-04-20 15:34:48 +00:00
|
|
|
/* 导入 Pinia */
|
|
|
|
const store = createPinia()
|
|
|
|
|
2023-05-28 17:16:19 +00:00
|
|
|
// 使用路由守卫
|
|
|
|
setupRouterGuard(router)
|
|
|
|
|
2023-04-17 15:20:49 +00:00
|
|
|
// css
|
2023-05-14 07:16:28 +00:00
|
|
|
import '@/styles/reset.css'
|
2023-05-29 02:44:32 +00:00
|
|
|
createApp(App)
|
|
|
|
.use(router)
|
|
|
|
.use(store)
|
|
|
|
.use(i18n)
|
|
|
|
.use(VueQueryPlugin)
|
|
|
|
.mount('#app')
|