mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-05 13:57:10 -04:00
MODIFY CLIENT
This commit is contained in:
parent
61035dd088
commit
7ebc1cd38b
1 changed files with 33 additions and 33 deletions
|
@ -1,38 +1,38 @@
|
||||||
// // entry-client.js
|
// entry-client.js
|
||||||
// import { createApp } from './main';
|
import { createApp } from './main';
|
||||||
//
|
|
||||||
// const { app, router } = createApp();
|
|
||||||
//
|
|
||||||
// router.isReady().then(() => {
|
|
||||||
// app.mount('#app', true);
|
|
||||||
// });
|
|
||||||
|
|
||||||
// import 'uno.css'; // 确保这是你的 UnoCSS 生成的样式文件
|
const { app, router } = createApp();
|
||||||
|
|
||||||
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(() => {
|
router.isReady().then(() => {
|
||||||
console.log('---- Router is ready, now mounting the app...');
|
|
||||||
app.mount('#app', true);
|
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);
|
||||||
|
// });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue