desktop_task_schedule/code/web/task_schedule/src/main.js

38 lines
807 B
JavaScript
Raw Normal View History

2023-02-15 05:07:17 +00:00
/*
* @Author: Kane
* @Date: 2023-02-15 09:25:52
* @LastEditors: Kane
2023-03-01 16:35:21 +00:00
* @LastEditTime: 2023-03-01 23:17:06
2023-02-15 05:07:17 +00:00
* @FilePath: /task_schedule/src/main.js
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
2023-02-15 10:23:32 +00:00
import { createApp } from 'vue';
2023-02-27 17:16:49 +00:00
import { router } from "./router/index.js";
2023-03-01 16:35:21 +00:00
import store from "@/store/index";
2023-02-27 17:16:49 +00:00
2023-02-15 10:23:32 +00:00
import App from './App.vue';
2023-02-15 05:07:17 +00:00
2023-02-27 17:16:49 +00:00
import './style.css';
2023-02-15 05:07:17 +00:00
//css
import("element-plus/dist/index.css");
//element-plus
2023-02-28 11:58:03 +00:00
import ElementPlus from "element-plus";
2023-02-15 05:07:17 +00:00
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
const app = createApp(App);
//注册element-plus的图标
for (const [key, component,] of Object.entries(ElementPlusIconsVue))
{
app.component(key, component);
}
app.use(ElementPlus);
2023-02-27 17:16:49 +00:00
app.use(router);
2023-03-01 16:35:21 +00:00
app.use(store);
2023-02-15 05:07:17 +00:00
app.mount('#app');