feat:添加登录功能
This commit is contained in:
@@ -4,6 +4,7 @@ import { QueryClient, VueQueryPlugin } from '@tanstack/vue-query';
|
||||
import App from './App.vue';
|
||||
import router from './router';
|
||||
import './assets/main.css';
|
||||
import { useAuthStore } from './stores/auth';
|
||||
|
||||
const app = createApp(App);
|
||||
const pinia = createPinia();
|
||||
@@ -16,8 +17,13 @@ const queryClient = new QueryClient({
|
||||
}
|
||||
});
|
||||
|
||||
const authStore = useAuthStore(pinia);
|
||||
authStore.initialize();
|
||||
|
||||
app.use(pinia);
|
||||
app.use(router);
|
||||
app.use(VueQueryPlugin, { queryClient });
|
||||
|
||||
app.mount('#app');
|
||||
router.isReady().finally(() => {
|
||||
app.mount('#app');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user