修改跳转

dev
夜笙歌 1 year ago
parent da13e574c2
commit 7b691403db

@ -13,7 +13,10 @@
{{ name }} <i class="el-icon-arrow-down el-icon--right"></i> {{ name }} <i class="el-icon-arrow-down el-icon--right"></i>
</span> </span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="{router:i.router,name:i.sceneName}" v-for="i in selectSecnesList">{{ i.sceneName }}</el-dropdown-item> <el-dropdown-item v-for="i in selectSecnesList" :command="{router:i.router,name:i.sceneName}">{{
i.sceneName
}}
</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
@ -35,7 +38,7 @@
</span> </span>
</div> </div>
<div class="rightImg"> <div class="rightImg" @click="toIndex">
</div> </div>
</div> </div>
</template> </template>
@ -78,6 +81,10 @@ export default {
dropdownLink(e) { dropdownLink(e) {
this.name = e.name 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"});
} }
} }
}; };

Loading…
Cancel
Save