bug fix and performance improve

This commit is contained in:
2023-07-14 11:23:47 +08:00
parent 3ff0c73fec
commit b1bc4d2613
2 changed files with 4 additions and 4 deletions

View File

@ -60,9 +60,9 @@ export function refreshCache() {
}
// 租户模式设置
export function tenantSetting(params) {
export function updateMode(params) {
return request({
url: "/tenant/setting",
url: "/tenant/update-mode",
method: "put",
params,
});

View File

@ -493,7 +493,7 @@ import {
listTenant,
refreshCache,
switchPrimary,
tenantSetting,
updateMode,
updateDatasource,
updateTenant,
} from "@/api/tenant/tenant";
@ -852,7 +852,7 @@ const submitTenantSetting = async () => {
});
}
await tenantSettingRef.value.validate();
await tenantSetting(tenantSettingForm.value);
await updateMode(tenantSettingForm.value);
getList();
ElMessage.success("模式设置成功");
showTenantSetting.value = false;