From 007c95c94c68c504fd33d78b842bbd51a41fb977 Mon Sep 17 00:00:00 2001 From: qq_27829333 Date: Wed, 20 Dec 2023 11:12:00 +0800 Subject: [PATCH] Wed Dec 20 11:12:00 CST 2023 inscode --- .inscode | 4 ++++ package.json | 1 + src/main.js | 6 +++++- 3 files changed, 10 insertions(+), 1 deletion(-) 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..13c9ace 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "preview": "vite preview --port 4173" }, "dependencies": { + "element-plus": "^2.4.4", "guess": "^1.0.2", "vue": "^3.2.37" }, diff --git a/src/main.js b/src/main.js index 90e6400..9ffd8d0 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,10 @@ import { createApp } from 'vue' +import ElementPlus from 'element-plus' +import 'element-plus/dist/index.css' import App from './App.vue' import './assets/main.css' +const app = createApp(App) -createApp(App).mount('#app') +app.use(ElementPlus) +app.mount('#app') -- GitLab