You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
427 B
18 lines
427 B
1 week ago
|
import request from '@/sheep/request';
|
||
|
|
||
|
/**
|
||
|
* 通过网站域名获取租户信息
|
||
|
* @param {string} website - 网站域名
|
||
|
* @returns {Promise<Object>} 租户信息
|
||
|
*/
|
||
|
export function getTenantByWebsite(website) {
|
||
|
return request({
|
||
|
url: '/system/tenant/get-by-website',
|
||
|
method: 'GET',
|
||
|
params: { website },
|
||
|
custom: {
|
||
|
isToken: false, // 避免登录情况下,跨租户访问被拦截
|
||
|
},
|
||
|
});
|
||
|
}
|