1 Star 21 Fork 5

mayuxian/vue3-admin-template

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.ts 783 Bytes
一键复制 编辑 原始数据 按行查看 历史
mayuxian 提交于 2022-08-07 19:20 +08:00 . 初始化项目
import { createApp } from 'vue'
import App from './App.vue'
//提升css超过router,尝试解决safari布局错乱问题
import './assets/styles/index.scss'
import router from './router/index'
import store from './store/index'
import 'dayjs/locale/zh-cn'
import plugins from './plugins/index'
//目前只支持全量,按需引入官网正在开发中
import * as Icons from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
// import 'core-js' //需要按需引入
import directives from './directive/index'
const app = createApp(App)
// 注册全局ICON
Object.keys(Icons).forEach(key => {
app.component(key, Icons[key as keyof typeof Icons])
})
app.use(ElementPlus)
app.use(router)
app.use(store)
app.use(plugins)
app.use(directives)
app.mount('#app')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mayuxian/vue3-admin-template.git
git@gitee.com:mayuxian/vue3-admin-template.git
mayuxian
vue3-admin-template
vue3-admin-template
main

搜索帮助