修复链接错误,优化部分代码

This commit is contained in:
chuzhongzai 2023-12-21 14:17:04 +08:00
parent 61d2037ca0
commit fa7245e045
2 changed files with 4 additions and 1 deletions

View File

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

View File

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