登录页自动获取租户bug优化
This commit is contained in:
parent
9b4e2c1011
commit
4e8efc81c8
@ -200,7 +200,9 @@ export default {
|
|||||||
// 租户开关
|
// 租户开关
|
||||||
this.tenantEnable = getTenantEnable();
|
this.tenantEnable = getTenantEnable();
|
||||||
if (this.tenantEnable) {
|
if (this.tenantEnable) {
|
||||||
|
if(this.$route.query.tenantCode && this.$route.query.tenantCode!=''){
|
||||||
this.tenantCode = this.$route.query.tenantCode; // John
|
this.tenantCode = this.$route.query.tenantCode; // John
|
||||||
|
}
|
||||||
getTenantIdByWebsite(this.tenantCode).then(res => { // 设置租户
|
getTenantIdByWebsite(this.tenantCode).then(res => { // 设置租户
|
||||||
const tenantId = res.data;
|
const tenantId = res.data;
|
||||||
if (tenantId && tenantId >= 0) {
|
if (tenantId && tenantId >= 0) {
|
||||||
|
@ -55,7 +55,8 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
name: name,
|
name: name,
|
||||||
devtool: "source-map",
|
//本意是想解决无法debugger问题
|
||||||
|
// devtool: "source-map",
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': resolve('src')
|
'@': resolve('src')
|
||||||
|
Loading…
Reference in New Issue
Block a user