修复链接错误,优化部分代码
This commit is contained in:
parent
61d2037ca0
commit
fa7245e045
@ -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') {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user