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