修改切换

dev
夜笙歌 1 year ago
parent 36c11cc52b
commit f88f44271d

@ -14,11 +14,13 @@
{{ 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">
<div style="height: 300px;overflow: auto">
<el-dropdown-item v-for="i in selectSecnesList" :key="i.sceneId" <el-dropdown-item v-for="i in selectSecnesList" :key="i.sceneId"
:command="{router:i.router,name:i.sceneName,sceneId:i.sceneId}">{{ :command="{router:i.router,name:i.sceneName,sceneId:i.sceneId}">{{
i.sceneName i.sceneName
}} }}
</el-dropdown-item> </el-dropdown-item>
</div>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>

@ -84,6 +84,12 @@ export default {
Chart, Chart,
vueSeamlessScroll, vueSeamlessScroll,
}, },
watch:{
async $route(to,from){
await this.getData()
console.log(123)
}
},
data() { data() {
return { return {
num1: 0, num1: 0,

Loading…
Cancel
Save