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

38 lines
855 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-24 07:11:47 +00:00
* @LastEditTime: 2023-03-24 14:34:52
2023-02-15 05:07:17 +00:00
* @FilePath: /task_schedule/src/main.js
2023-03-17 06:40:04 +00:00
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
2023-02-15 05:07:17 +00:00
*/
2023-03-17 06:40:04 +00:00
import { createApp } from "vue";
2023-03-03 08:08:27 +00:00
import { router } from "./router/index";
2023-03-01 16:35:21 +00:00
import store from "@/store/index";
2023-02-27 17:16:49 +00:00
2023-03-17 06:40:04 +00:00
import App from "./App.vue";
2023-02-15 05:07:17 +00:00
2023-03-17 06:40:04 +00:00
// css
2023-03-31 11:53:12 +00:00
import "./style.scss";
import "./assets/css/index.scss";
2023-03-02 16:33:30 +00:00
2023-03-17 06:40:04 +00:00
// 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";
2023-03-24 07:11:47 +00:00
import( "element-plus/dist/index.css" );
2023-02-15 05:07:17 +00:00
2023-03-24 07:11:47 +00:00
const app = createApp( App );
2023-02-15 05:07:17 +00:00
2023-03-17 06:40:04 +00:00
// 注册element-plus的图标
2023-03-24 07:11:47 +00:00
for ( const [key, component,] of Object.entries( ElementPlusIconsVue ))
2023-02-15 05:07:17 +00:00
{
2023-03-24 07:11:47 +00:00
app.component( key, component );
2023-02-15 05:07:17 +00:00
}
2023-03-24 07:11:47 +00:00
app.use( ElementPlus );
app.use( router );
app.use( store );
app.mount( "#app" );