From c5583350a97c8873b688180f8ddf3651a3b04683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=A1=E5=A4=8D=E4=B9=A0?= <2353956224@qq.com> Date: Mon, 28 Jul 2025 15:38:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=AC=A1=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E4=B8=8D=E5=87=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/hosts/workbenches.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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) })