CRM:code review 客户总量统计

This commit is contained in:
YunaiV
2024-03-09 16:51:42 +08:00
parent 55856be1de
commit c89941d435
3 changed files with 5 additions and 3 deletions

View File

@ -291,13 +291,13 @@ const doSocialLogin = async (type: number) => {
await getTenantId()
// 如果获取不到,则需要弹出提示,进行处理
if (!authUtil.getTenantId()) {
try {
try {
const data = await message.prompt('请输入租户名称', t('common.reminder'))
if (data?.action !== 'confirm') throw 'cancel'
const res = await LoginApi.getTenantIdByName(data.value)
authUtil.setTenantId(res)
} catch (error) {
if(error === 'cancel') return
if (error === 'cancel') return
} finally {
loginLoading.value = false
}