登录页自动获取租户bug优化

This commit is contained in:
Vinjor 2024-08-01 18:11:28 +08:00
parent 9b4e2c1011
commit 4e8efc81c8
2 changed files with 5 additions and 2 deletions

View File

@ -200,7 +200,9 @@ export default {
//
this.tenantEnable = getTenantEnable();
if (this.tenantEnable) {
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) {

View File

@ -55,7 +55,8 @@ module.exports = {
},
configureWebpack: {
name: name,
devtool: "source-map",
//本意是想解决无法debugger问题
// devtool: "source-map",
resolve: {
alias: {
'@': resolve('src')