diff --git a/src/api/system/tenant/index.ts b/src/api/system/tenant/index.ts
index d1d8ff8..675447c 100644
--- a/src/api/system/tenant/index.ts
+++ b/src/api/system/tenant/index.ts
@@ -99,3 +99,11 @@ export function syncTenantDict() {
method: 'get'
});
}
+
+// 同步租户字典
+export function syncTenantConfig() {
+ return request({
+ url: '/system/tenant/syncTenantConfig',
+ method: 'get'
+ });
+}
diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue
index b594546..dd31700 100644
--- a/src/views/system/tenant/index.vue
+++ b/src/views/system/tenant/index.vue
@@ -47,6 +47,9 @@
同步租户字典
+
+ 同步租户参数配置
+
@@ -152,7 +155,8 @@ import {
updateTenant,
changeTenantStatus,
syncTenantPackage,
- syncTenantDict
+ syncTenantDict,
+ syncTenantConfig
} from '@/api/system/tenant';
import { selectTenantPackage } from '@/api/system/tenantPackage';
import { useUserStore } from '@/store/modules/user';
@@ -365,6 +369,13 @@ const handleSyncTenantDict = async () => {
proxy?.$modal.msgSuccess(res.msg);
};
+/**同步租户参数配置*/
+const handleSyncTenantConfig = async () => {
+ await proxy?.$modal.confirm('确认要同步所有租户参数配置吗?');
+ const res = await syncTenantConfig();
+ proxy?.$modal.msgSuccess(res.msg);
+};
+
onMounted(() => {
getList();
});