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,