From 7ebc1cd38b5fc85e08dedaad8f0667e2dae988a5 Mon Sep 17 00:00:00 2001 From: NEO <001@etc.dog> Date: Tue, 23 Apr 2024 16:26:55 +0800 Subject: [PATCH] MODIFY CLIENT --- src/entry-client.ts | 66 ++++++++++++++++++++++----------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/entry-client.ts b/src/entry-client.ts index 8eabf33a..b10281ed 100644 --- a/src/entry-client.ts +++ b/src/entry-client.ts @@ -1,38 +1,38 @@ -// // entry-client.js -// import { createApp } from './main'; -// -// const { app, router } = createApp(); -// -// router.isReady().then(() => { -// app.mount('#app', true); -// }); +// entry-client.js +import { createApp } from './main'; -// import 'uno.css'; // 确保这是你的 UnoCSS 生成的样式文件 - -import { createHead } from '@vueuse/head'; - -// src/entry-client.js -import { createApp } from 'vue'; -import { createPinia } from 'pinia'; -import App from './App.vue'; -import router from '@/router'; -import { plausible } from '@/plugins/plausible.plugin'; -import { naive } from '@/plugins/naive.plugin'; -import { i18nPlugin } from '@/plugins/i18n.plugin'; - -const app = createApp(App); -const pinia = createPinia(); -app.use(pinia); -app.use(createHead()); -app.use(i18nPlugin); -app.use(router); -app.use(plausible); -app.use(naive); +const { app, router } = createApp(); router.isReady().then(() => { - console.log('---- Router is ready, now mounting the app...'); app.mount('#app', true); - console.log('---- App has been mounted successfully.'); -}).catch((err) => { - console.log(err); }); +// +// // import 'uno.css'; // 确保这是你的 UnoCSS 生成的样式文件 +// +// import { createHead } from '@vueuse/head'; +// +// // src/entry-client.js +// import { createApp } from 'vue'; +// import { createPinia } from 'pinia'; +// import App from './App.vue'; +// import router from '@/router'; +// import { plausible } from '@/plugins/plausible.plugin'; +// import { naive } from '@/plugins/naive.plugin'; +// import { i18nPlugin } from '@/plugins/i18n.plugin'; +// +// const app = createApp(App); +// const pinia = createPinia(); +// app.use(pinia); +// app.use(createHead()); +// app.use(i18nPlugin); +// app.use(router); +// app.use(plausible); +// app.use(naive); +// +// router.isReady().then(() => { +// console.log('---- Router is ready, now mounting the app...'); +// app.mount('#app', true); +// console.log('---- App has been mounted successfully.'); +// }).catch((err) => { +// console.log(err); +// });