|
|
@ -20,7 +20,12 @@ export default {
|
|
|
|
this.$router.push({path: "/board/index"});
|
|
|
|
this.$router.push({path: "/board/index"});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
selectSecnes().then((e)=>{
|
|
|
|
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.$store.dispatch('app/setSceneId', data.sceneId)
|
|
|
|
this.$router.push({path: '/board/'+data.router+'?name='+data.sceneName})
|
|
|
|
this.$router.push({path: '/board/'+data.router+'?name='+data.sceneName})
|
|
|
|
})
|
|
|
|
})
|
|
|
|