feat: 项目结构调整|新增依赖
This commit is contained in:
17
src/renderer/main.ts
Normal file
17
src/renderer/main.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import "./index.css";
|
||||
import { createApp } from "vue";
|
||||
import { createPinia } from "pinia";
|
||||
import router from "./router";
|
||||
import App from "./App.vue";
|
||||
|
||||
// 创建 Vue 应用实例
|
||||
const app = createApp(App);
|
||||
|
||||
// 使用 Pinia 状态管理
|
||||
app.use(createPinia());
|
||||
|
||||
// 使用 Vue Router
|
||||
app.use(router);
|
||||
|
||||
// 挂载应用到 DOM
|
||||
app.mount("#app");
|
||||
Reference in New Issue
Block a user