mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-21 02:25:56 +08:00
add 新增 tenant.js 支持动态切换租户
This commit is contained in:
parent
ba89797bce
commit
b4987dec3d
@ -56,3 +56,19 @@ export function delTenant(id) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 动态切换租户
|
||||||
|
export function dynamicTenant(tenantId) {
|
||||||
|
return request({
|
||||||
|
url: '/system/tenant/dynamic/' + tenantId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 清除动态租户
|
||||||
|
export function dynamicClear() {
|
||||||
|
return request({
|
||||||
|
url: '/system/tenant/dynamic/clear',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user