From ec18f669e0bb961e82f907de648fa2f443c49297 Mon Sep 17 00:00:00 2001 From: chenhaodong Date: Mon, 22 Jun 2026 16:45:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=93=E5=8C=85=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E6=A0=B7=E5=BC=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/misc.xml | 49 +++++++++++++++ exam-vue/src/layout/index.vue | 4 +- exam-vue/src/styles/btn.scss | 16 ++--- exam-vue/src/styles/index.scss | 12 ++-- exam-vue/src/styles/sidebar.scss | 29 +++++---- .../views/login/components/LoginLayout.vue | 2 +- exam-vue/vite.config.js | 59 ------------------- 7 files changed, 82 insertions(+), 89 deletions(-) delete mode 100644 exam-vue/vite.config.js diff --git a/.idea/misc.xml b/.idea/misc.xml index c082a1e..d803985 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -8,6 +8,55 @@ + + + + diff --git a/exam-vue/src/layout/index.vue b/exam-vue/src/layout/index.vue index 5b50991..735f11e 100644 --- a/exam-vue/src/layout/index.vue +++ b/exam-vue/src/layout/index.vue @@ -63,8 +63,8 @@ export default { diff --git a/exam-vue/vite.config.js b/exam-vue/vite.config.js deleted file mode 100644 index ee7de92..0000000 --- a/exam-vue/vite.config.js +++ /dev/null @@ -1,59 +0,0 @@ -import { defineConfig, loadEnv } from 'vite' -import vue from '@vitejs/plugin-vue' -import { createSvgIconsPlugin } from 'vite-plugin-svg-icons' -import path from 'path' - -const resolve = (dir) => path.resolve(__dirname, dir) - -export default defineConfig(({ mode }) => { - const env = loadEnv(mode, process.cwd()) - - return { - plugins: [ - vue(), - createSvgIconsPlugin({ - iconDirs: [resolve('src/icons/svg')], - symbolId: 'icon-[name]' - }) - ], - resolve: { - alias: { - '@': resolve('src') - } - }, - define: { - 'process.env': {} - }, - server: { - port: 9527, - open: true - }, - build: { - outDir: 'dist', - assetsDir: 'static', - sourcemap: false, - rollupOptions: { - output: { - chunkFileNames: 'static/js/[name]-[hash].js', - entryFileNames: 'static/js/[name]-[hash].js', - assetFileNames: 'static/[ext]/[name]-[hash].[ext]', - manualChunks(id) { - if (id.includes('node_modules')) { - if (id.includes('element-plus')) { - return 'chunk-elementPlus' - } - return 'chunk-libs' - } - } - } - } - }, - css: { - preprocessorOptions: { - scss: { - charset: false - } - } - } - } -})