登录页自动获取租户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(); this.tenantEnable = getTenantEnable();
if (this.tenantEnable) { 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 => { // getTenantIdByWebsite(this.tenantCode).then(res => { //
const tenantId = res.data; const tenantId = res.data;
if (tenantId && tenantId >= 0) { if (tenantId && tenantId >= 0) {

View File

@ -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')