From 26362aaed814e43356455e57c89d1b4a892ca058 Mon Sep 17 00:00:00 2001 From: chyuanrufeng Date: Sat, 11 Nov 2023 18:26:33 +0800 Subject: [PATCH] Auto Commit --- .inscode | 4 + package.json | 3 +- src/App.vue | 228 +++++++++++++++++++++++++++++++++++++++++++-------- src/main.js | 15 +++- 4 files changed, 215 insertions(+), 35 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..c5f55b0 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ }, "dependencies": { "guess": "^1.0.2", - "vue": "^3.2.37" + "vue": "^3.2.37", + "element-plus": "^2.3.12" }, "devDependencies": { "@vitejs/plugin-vue": "^3.0.1", diff --git a/src/App.vue b/src/App.vue index 633a5df..69875e4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,47 +1,209 @@ - + - + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 90e6400..97f4f2c 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,19 @@ import { createApp } from 'vue' import App from './App.vue' +import ElementPlus from 'element-plus' +import zhCn from 'element-plus/dist/locale/zh-cn.mjs' //支持中文 + + import './assets/main.css' +import 'element-plus/dist/index.css' + + +const app = createApp(App); + + +app.use(ElementPlus,{ + locale: zhCn, //支持中文 +}) -createApp(App).mount('#app') +app.mount('#app') -- GitLab