From 2140d90a87ecb36ba771f169f11c88072cd533a8 Mon Sep 17 00:00:00 2001 From: Hunlongyu Date: Thu, 29 Oct 2020 14:45:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=80=20=E6=BA=90=E7=BC=96=E8=BE=91,?= =?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=8D=95=E4=B8=AA=E6=BA=90=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E5=8A=9F=E8=83=BD.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/EditSites.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/components/EditSites.vue b/src/components/EditSites.vue index 5cc731f..b0b36b1 100644 --- a/src/components/EditSites.vue +++ b/src/components/EditSites.vue @@ -65,11 +65,12 @@ @@ -441,6 +442,19 @@ export default { } this.checkAllSiteLoading = false this.updateDatabase() + }, + async checkSimpleSite (row) { + this.checkAllSiteLoading = true + const flag = await zy.check(row.key) + if (flag) { + row.status = '可用' + } else { + row.status = '失效' + row.isActive = 0 + } + this.updateDatabase() + this.tableKey = Math.random() + this.checkAllSiteLoading = false } }, mounted () {