mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🔨 🧑💻 添加vue-devtools 优化开发者体验
Co-authored-by: 舰队的偶像-岛风酱! <frg2089@outlook.com> Signed-off-by: 舰队的偶像-岛风酱! <frg2089@outlook.com>
This commit is contained in:
12
src/main.ts
12
src/main.ts
@@ -18,4 +18,14 @@ import { createVuetify } from "vuetify";
|
||||
// 全局样式
|
||||
import "./assets/index.css";
|
||||
|
||||
createApp(App).use(router).use(store).use(createVuetify()).mount("#app");
|
||||
if (import.meta.env.MODE === "development") {
|
||||
await import("@vue/devtools").then(i => {
|
||||
i.default.connect(/* host, port */);
|
||||
});
|
||||
}
|
||||
|
||||
createApp(App)
|
||||
.use(router)
|
||||
.use(store)
|
||||
.use(createVuetify())
|
||||
.mount("#app");
|
||||
|
||||
Reference in New Issue
Block a user