From e72e5cdfe267b7c3c1a765b3798ca11f3cc72352 Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Mon, 28 Apr 2025 15:15:36 +0800 Subject: [PATCH] =?UTF-8?q?[UI]=20=E5=8E=BB=E9=99=A4=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8D=E5=AF=86=E7=A0=81=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=89=93=E5=8C=85=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/build/index.js | 2 +- web/src/views/login/index.vue | 4 ++-- web/vue.config.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/build/index.js b/web/build/index.js index 0c57de2aa..293d3727b 100644 --- a/web/build/index.js +++ b/web/build/index.js @@ -18,7 +18,7 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) { app.use( publicPath, - serveStatic('./dist', { + serveStatic('./src/main/resources/static', { index: ['index.html', '/'] }) ) diff --git a/web/src/views/login/index.vue b/web/src/views/login/index.vue index 339a4c409..e4f5ffe90 100644 --- a/web/src/views/login/index.vue +++ b/web/src/views/login/index.vue @@ -78,8 +78,8 @@ export default { } return { loginForm: { - username: 'admin', - password: 'admin' + username: '', + password: '' }, loginRules: { username: [{ required: true, trigger: 'blur', validator: validateUsername }], diff --git a/web/vue.config.js b/web/vue.config.js index 72751c3e2..330fba554 100644 --- a/web/vue.config.js +++ b/web/vue.config.js @@ -25,7 +25,7 @@ module.exports = { * Detail: https://cli.vuejs.org/config/#publicpath */ publicPath: '/', - outputDir: 'dist', + outputDir: '../src/main/resources/static', assetsDir: 'static', lintOnSave: process.env.NODE_ENV === 'development', productionSourceMap: false,