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 () {