From d72560a773624326b13f2f7efe7cfc9528f0a9eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9A=E5=95=A6b=E6=A2=A6?= <1715109585@qq.com> Date: Tue, 7 Nov 2023 23:53:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83,=E7=BB=84=E4=BB=B6=E9=83=BD?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=8C=89=E9=9C=80=E5=BC=95=E5=85=A5?= =?UTF-8?q?=E5=87=8F=E5=B0=91=E4=BD=93=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GoEasyDesigner/frontend/src/main.js | 8 ++++---- GoEasyDesigner/frontend/vite.config.js | 9 +++++++-- go-easy-demo | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/GoEasyDesigner/frontend/src/main.js b/GoEasyDesigner/frontend/src/main.js index 1a03427d..dc6bcbc7 100644 --- a/GoEasyDesigner/frontend/src/main.js +++ b/GoEasyDesigner/frontend/src/main.js @@ -2,10 +2,10 @@ import './assets/main.css' import {createApp} from 'vue' import {createPinia} from 'pinia' -import ElementPlus from 'element-plus' +// import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' -import TDesign from 'tdesign-vue-next' +// import TDesign from 'tdesign-vue-next' import 'tdesign-vue-next/es/style/index.css' import Helper from "./Helper.js" @@ -193,8 +193,8 @@ app.config.globalProperties.t = i18n.global.t app.use(i18n) -app.use(TDesign) -app.use(ElementPlus) +// app.use(TDesign) +// app.use(ElementPlus) app.mount('#app') diff --git a/GoEasyDesigner/frontend/vite.config.js b/GoEasyDesigner/frontend/vite.config.js index bd8f0e76..784d6fa9 100644 --- a/GoEasyDesigner/frontend/vite.config.js +++ b/GoEasyDesigner/frontend/vite.config.js @@ -5,11 +5,10 @@ import vue from '@vitejs/plugin-vue' import AutoImport from 'unplugin-auto-import/vite' import Components from 'unplugin-vue-components/vite' -import {ElementPlusResolver} from 'unplugin-vue-components/resolvers' +import {ElementPlusResolver, TDesignResolver} from 'unplugin-vue-components/resolvers' import IconsResolver from 'unplugin-icons/resolver' import vueJsx from '@vitejs/plugin-vue-jsx' - // https://vitejs.dev/config/ export default defineConfig({ server: { @@ -37,6 +36,9 @@ export default defineConfig({ IconsResolver({ prefix: 'Icon', }), + TDesignResolver({ + library: 'vue-next' + }) ], }), Components({ @@ -49,6 +51,9 @@ export default defineConfig({ // Auto register Element Plus components // 自动导入 Element Plus 组件 ElementPlusResolver(), + TDesignResolver({ + library: 'vue-next' + }) ], }), diff --git a/go-easy-demo b/go-easy-demo index f61dd7f3..20c8f05e 160000 --- a/go-easy-demo +++ b/go-easy-demo @@ -1 +1 @@ -Subproject commit f61dd7f3fd49379f2aaba4050e4d2115b3943d3a +Subproject commit 20c8f05ed5bc6732c439e3d796b39da45cdea104