+
管 理
-
@@ -49,7 +52,7 @@ export default {
data() {
return {
selectSecnesList: [],
- name:'智慧场景'
+ name: '智慧场景'
}
},
props: {
@@ -61,8 +64,8 @@ export default {
mounted() {
this.setSelectSecnes()
- if(this.$route.name === 'SmartScene'){
- if(this.$route.query?.name){
+ if (this.$route.name === 'SmartScene') {
+ if (this.$route.query?.name) {
this.name = this.$route.query?.name
}
}
@@ -72,12 +75,16 @@ export default {
const {data} = await selectSecnes()
this.selectSecnesList = data
},
- toLink(e){
- this.$router.push({ path: "/board/"+e });
+ toLink(e) {
+ this.$router.push({path: "/board/" + e});
},
- dropdownLink(e){
+ dropdownLink(e) {
this.name = e.name
- this.$router.push({ path: "/board/"+(e.router||'smartScene'),query: {name: e.name} });
+ this.$router.push({path: "/board/" + (e.router || 'smartScene'), query: {name: e.name}});
+ },
+ toIndex() {
+ console.log(123)
+ this.$router.push({path: "/index"});
}
}
};