diff --git a/src/views/hosts/workbenches.vue b/src/views/hosts/workbenches.vue index 0d1b2c4..410218b 100644 --- a/src/views/hosts/workbenches.vue +++ b/src/views/hosts/workbenches.vue @@ -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) })