diff --git a/src/api/system/tenant.js b/src/api/system/tenant.js index bef02c5..90a6610 100644 --- a/src/api/system/tenant.js +++ b/src/api/system/tenant.js @@ -11,6 +11,17 @@ export function getTenantIdByName(name) { }) } +// 使用租户域名(标识),获得租户编号 +export function getTenantIdByWebsite(website) { + return request({ + url: '/system/tenant/get-by-website', + method: 'get', + params: { + website + } + }) +} + // 创建租户 export function createTenant(data) { return request({ diff --git a/src/views/base/company/index.vue b/src/views/base/company/index.vue index 4ef0712..8e7cef9 100644 --- a/src/views/base/company/index.vue +++ b/src/views/base/company/index.vue @@ -140,7 +140,6 @@ export default { /** 查询列表 */ async getList() { try { - debugger this.loading = true const res = await CompanyApi.getCompanyPage(this.queryParams) this.list = res.data.records diff --git a/src/views/login.vue b/src/views/login.vue index 19e00cb..78eda5d 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -110,7 +110,7 @@