修复链接错误,优化部分代码
This commit is contained in:
parent
61d2037ca0
commit
fa7245e045
@ -98,7 +98,7 @@ function submit(){
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
function unpair(){
|
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}))
|
id:currentSiteId.value}))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if(res.data.result === 'success') {
|
if(res.data.result === 'success') {
|
||||||
|
|||||||
@ -48,6 +48,9 @@ watch(store.getters.getStatues, () => {
|
|||||||
watch(currentType, () => {
|
watch(currentType, () => {
|
||||||
refreshType()
|
refreshType()
|
||||||
})
|
})
|
||||||
|
watch(allSites, () => {
|
||||||
|
refreshType()
|
||||||
|
})
|
||||||
watch(route.currentRoute, () => {
|
watch(route.currentRoute, () => {
|
||||||
if(route.currentRoute.value.path.startsWith("/index/status/")){
|
if(route.currentRoute.value.path.startsWith("/index/status/")){
|
||||||
if(route.currentRoute.value.query.type === undefined) {
|
if(route.currentRoute.value.query.type === undefined) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user