查询次数,第一次不准

This commit is contained in:
2025-07-28 15:38:16 +08:00
parent f5dc71d343
commit c5583350a9

View File

@@ -390,7 +390,7 @@ const unsubmit = () => {
isStart: false,
country: countryData.value,
tenantId: getUser().tenantId,
userId: getUser().userId,
userId: getUser().id,
})).then((res) => {
pauseTimer();
pyData.value.isStart = true;
@@ -472,15 +472,17 @@ function getloginStatusCopy() {
function tkaccountuse(id, index) {
let num = 0;
if (id || id == '') {
console.log(id, index, "查询次数")
if (!id || id == '') {
return
}
tkaccountuseinfo(id).then((res) => {
if (res) {
num = res
tkData.value[index].num = num
console.log('账号使用次数', tkData.value[index].num)
}
console.log("查询返回", res)
num = res
tkData.value[index].num = num
setTkUser(tkData.value)
console.log('账号使用次数', tkData.value[index].num)
// ElMessage.error('账号使用次数', tkData.value[index].num);
}).catch((err) => {
console.log('账号使用次数', err)
})