diff --git a/src/views/login.vue b/src/views/login.vue index 88f603a..78eda5d 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -200,7 +200,9 @@ export default { // 租户开关 this.tenantEnable = getTenantEnable(); if (this.tenantEnable) { - this.tenantCode = this.$route.query.tenantCode; // John + if(this.$route.query.tenantCode && this.$route.query.tenantCode!=''){ + this.tenantCode = this.$route.query.tenantCode; // John + } getTenantIdByWebsite(this.tenantCode).then(res => { // 设置租户 const tenantId = res.data; if (tenantId && tenantId >= 0) { diff --git a/vue.config.js b/vue.config.js index e6bb18e..9a5675b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -55,7 +55,8 @@ module.exports = { }, configureWebpack: { name: name, - devtool: "source-map", + //本意是想解决无法debugger问题 + // devtool: "source-map", resolve: { alias: { '@': resolve('src')