From 0439d9a8335af80923a26644f85918cc02b9ee06 Mon Sep 17 00:00:00 2001 From: 622eda98dfef6c4fdb84ccca <622eda98dfef6c4fdb84ccca@devide> Date: Wed, 26 Apr 2023 15:07:00 +0000 Subject: [PATCH] Wed Apr 26 15:07:00 UTC 2023 inscode --- src/main.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index c393528..d899de9 100644 --- a/src/main.js +++ b/src/main.js @@ -1,11 +1,23 @@ +// 导入 createApp 函数 import { createApp } from 'vue' + +// 导入 ViewUIPlus 组件库 import ViewUIPlus from 'view-ui-plus' + +// 导入 App 组件 import App from './App.vue' +// 导入 ViewUIPlus 样式文件 import 'view-ui-plus/dist/styles/viewuiplus.css' + +// 导入自定义样式文件 import './assets/main.css' +// 创建应用程序实例 const app = createApp(App) +// 安装 ViewUIPlus 组件库 app.use(ViewUIPlus) - .mount('#app') + +// 将应用程序实例挂载到页面中 +app.mount('#app') -- GitLab