diff --git a/config/index.js b/config/index.js index 903d8b2..eb83e20 100644 --- a/config/index.js +++ b/config/index.js @@ -36,7 +36,7 @@ module.exports = { }, // Various Dev Server settings - host: "0.0.0.0", // can be overwritten by process.env.HOST + host: "localhost", // can be overwritten by process.env.HOST port: 8001, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/src/views/common/login.vue b/src/views/common/login.vue index 39efae5..99656bd 100644 --- a/src/views/common/login.vue +++ b/src/views/common/login.vue @@ -93,7 +93,7 @@ // 获取验证码 getCaptcha () { this.dataForm.uuid = getUUID() - this.captchaPath = this.$http.adornUrl(`/captcha.jpg?uuid=${this.dataForm.uuid}`) + this.captchaPath = this.$http.adornUrl(`indetcode/getCode?uuid=${this.dataForm.uuid}`) } } }