mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-11 11:05:56 +08:00
ChangeView的时候关闭EditSites页面
This commit is contained in:
@@ -62,16 +62,27 @@ export default {
|
|||||||
set (val) {
|
set (val) {
|
||||||
this.SET_DETAIL(val)
|
this.SET_DETAIL(val)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
editSites: {
|
||||||
|
get () {
|
||||||
|
return this.$store.getters.getEditSites
|
||||||
|
},
|
||||||
|
set (val) {
|
||||||
|
this.SET_EDITSITES(val)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations(['SET_VIEW', 'SET_DETAIL']),
|
...mapMutations(['SET_VIEW', 'SET_DETAIL', 'SET_EDITSITES']),
|
||||||
changeView (e) {
|
changeView (e) {
|
||||||
this.view = e
|
this.view = e
|
||||||
// ChangeView 的时候关闭Detail页面
|
// ChangeView 的时候关闭Detail和EditSites页面
|
||||||
this.detail = {
|
this.detail = {
|
||||||
show: false
|
show: false
|
||||||
}
|
}
|
||||||
|
this.editSites = {
|
||||||
|
show: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user