修改跳转

dev
夜笙歌 1 year ago
parent 33d3e978e5
commit 0ef65248d3

@ -20,7 +20,12 @@ export default {
this.$router.push({path: "/board/index"});
} else {
selectSecnes().then((e)=>{
let data = e.data.find(e=> e.defaultFlag === '1')
let data = e.data.find(e=> e.defaultFlag === '1') || null
debugger
if(!data){
data = e.data[0]
}
debugger
this.$store.dispatch('app/setSceneId', data.sceneId)
this.$router.push({path: '/board/'+data.router+'?name='+data.sceneName})
})

Loading…
Cancel
Save