Compare commits

...

4 Commits

Author SHA1 Message Date
wuxw
1f9802a2e8 v1.9 登陆错误信息提示 2025-08-26 17:34:04 +08:00
wuxw
b0260112e5 v1.9 登陆错误信息提示 2025-08-26 17:25:53 +08:00
wuxw
fb7bc2c7b9 代码暂存 2025-08-26 16:46:16 +08:00
wuxw
6e130fdacf 修复演示环境bug 2025-08-26 09:33:23 +08:00
5 changed files with 16 additions and 10 deletions

View File

@ -45,11 +45,7 @@ export function importRoomFeeData(formData) {
}
}).then(response => {
const res = response.data
if (res.code === 0) {
resolve(res.data)
} else {
reject(res.msg)
}
resolve(res)
}).catch(error => {
reject(error.response.data)
})

View File

@ -13,7 +13,7 @@ export function login(data) {
// 可以在这里添加其他登录成功后的处理
resolve(res)
} else {
reject(new Error(res.msg || '登录失败'))
reject(res.msg || '登录失败')
}
}).catch(error => {
reject(error)

View File

@ -47,7 +47,7 @@ export default {
}
} catch (error) {
console.error('请求失败:', error)
this.$message.error(this.$t('common.operateFail'))
this.$message.error(error || this.$t('common.operateFail'))
}
}
}

View File

@ -118,10 +118,17 @@ export default {
})
if (res.code === 0) {
this.$message.success(this.$t('importRoomFee.message.importSuccess'))
this.$emit('success')
this.visible = false
this.$emit('success')
this.$router.push({
path: '/views/system/assetImportLogDetail',
query: {
logId: res.data.logId,
logType: 'importRoomFee'
}
})
} else {
this.$message.error(res)
this.$message.error(res.msg)
}
})
} catch (error) {

View File

@ -86,10 +86,13 @@ export default {
this.loading = true;
try {
const { data } = await login(this.loginForm).catch(error => {
this.$message.error(error.response.data);
this.$message.error(error);
this.refreshCaptcha();
return { data: [] };
});
if (!data || data.length == 0) {
return;
}
if (data && data.length > 1) {
this.$refs.selectLoginUserRef.openDialog(data);