From fa7245e045fdb0b126d6628d6b8148d1721d02e0 Mon Sep 17 00:00:00 2001 From: chuzhongzai Date: Thu, 21 Dec 2023 14:17:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=93=BE=E6=8E=A5=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=8C=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/site-manage/index.vue | 2 +- src/views/status/index.vue | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/site-manage/index.vue b/src/views/site-manage/index.vue index 6b081cb..243060e 100644 --- a/src/views/site-manage/index.vue +++ b/src/views/site-manage/index.vue @@ -98,7 +98,7 @@ function submit(){ }) } function unpair(){ - axios.post(store.state.config.host + "manage/unpair?" + qs.stringify({passcode:store.state.config.passcode, + axios.post(store.state.config.host + "manage/site/unpair?" + qs.stringify({passcode:store.state.config.passcode, id:currentSiteId.value})) .then((res) => { if(res.data.result === 'success') { diff --git a/src/views/status/index.vue b/src/views/status/index.vue index 6ab366d..a73db29 100644 --- a/src/views/status/index.vue +++ b/src/views/status/index.vue @@ -48,6 +48,9 @@ watch(store.getters.getStatues, () => { watch(currentType, () => { refreshType() }) +watch(allSites, () => { + refreshType() +}) watch(route.currentRoute, () => { if(route.currentRoute.value.path.startsWith("/index/status/")){ if(route.currentRoute.value.query.type === undefined) {