From 8d0f8962c1a681f44472f20106a549b9d46ff9d9 Mon Sep 17 00:00:00 2001 From: qq_41923622 Date: Mon, 21 Aug 2023 12:40:00 +0800 Subject: [PATCH] Mon Aug 21 12:40:00 CST 2023 inscode --- .inscode | 4 ++++ package.json | 1 + src/main.js | 7 ++++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.inscode b/.inscode index 70c7853..9fec957 100644 --- a/.inscode +++ b/.inscode @@ -1,4 +1,5 @@ run = "npm i && npm run dev" +language = "node" [deployment] build = "npm i && npm run build" @@ -8,3 +9,6 @@ run = "npm run preview" PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}" XDG_CONFIG_HOME = "/root/.config" npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global" + +[debugger] +program = "main.js" diff --git a/package.json b/package.json index aa1c7de..55f74aa 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "preview": "vite preview --port 4173" }, "dependencies": { + "element-plus": "^2.3.9", "guess": "^1.0.2", "vue": "^3.2.37" }, diff --git a/src/main.js b/src/main.js index 90e6400..58c67d7 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,7 @@ import { createApp } from 'vue' import App from './App.vue' - +import 'element-plus/theme-chalk/index.css' import './assets/main.css' - -createApp(App).mount('#app') +import ElementPlus from 'element-plus' +import "@element-plus/icons-vue" +createApp(App).use(ElementPlus).mount('#app') -- GitLab