38 lines
835 B
JavaScript
38 lines
835 B
JavaScript
/*
|
|
* @Author: Kane
|
|
* @Date: 2023-02-15 09:25:52
|
|
* @LastEditors: Kane
|
|
* @LastEditTime: 2023-03-17 12:07:48
|
|
* @FilePath: /task_schedule/src/main.js
|
|
* @Description:
|
|
*
|
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
|
*/
|
|
import { createApp } from "vue";
|
|
import { router } from "./router/index";
|
|
import store from "@/store/index";
|
|
|
|
import App from "./App.vue";
|
|
|
|
// css
|
|
import "./style.css";
|
|
import "./assets/css/index.scss";
|
|
|
|
// element-plus
|
|
import ElementPlus from "element-plus";
|
|
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
|
|
import("element-plus/dist/index.css");
|
|
|
|
const app = createApp(App);
|
|
|
|
// 注册element-plus的图标
|
|
for (const [key, component,] of Object.entries(ElementPlusIconsVue))
|
|
{
|
|
app.component(key, component);
|
|
}
|
|
|
|
app.use(ElementPlus);
|
|
app.use(router);
|
|
app.use(store);
|
|
app.mount("#app");
|