|
|
@@ -58,14 +58,17 @@ const handleChange = (targetTenantId: string) => {
|
|
|
}).then(() => {
|
|
|
setValue(targetTenantId);
|
|
|
currentTenant.value = Number(targetTenantId);
|
|
|
- window.location.reload();
|
|
|
+
|
|
|
/**
|
|
|
* 如果处于小地图编辑状态,切换租户时候,返回布局列表
|
|
|
*/
|
|
|
if (isInConfigEditor(route.name)) {
|
|
|
+ sessionStorage.removeItem('selectCompanyId'); //切换租户的时候,下拉公司列表清空
|
|
|
router.back();
|
|
|
+ } else {
|
|
|
+ window.location.reload();
|
|
|
}
|
|
|
- sessionStorage.removeItem('selectCompanyId'); //切换租户的时候,下拉公司列表清空
|
|
|
+
|
|
|
}).catch(() => {
|
|
|
ElMessage({
|
|
|
type: 'info',
|