Commit 6313111e authored by wends's avatar wends

update 仪表盘

parent ee184c90
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
<div class="custom-menu"> <div class="custom-menu">
<el-menu <el-menu
ref="customMenu" ref="customMenu"
:default-active="defaultActive"
@select="onInstanceSelect" @select="onInstanceSelect"
> >
<el-menu-item <el-menu-item
...@@ -29,7 +28,6 @@ ...@@ -29,7 +28,6 @@
:id="'instance' + instance.id" :id="'instance' + instance.id"
:key="'instance' + index" :key="'instance' + index"
:index="instance.id.toString()" :index="instance.id.toString()"
:class="'instance' + instance.id"
>{{ instance.name }}</el-menu-item> >{{ instance.name }}</el-menu-item>
</el-menu> </el-menu>
</div> </div>
...@@ -206,7 +204,6 @@ export default { ...@@ -206,7 +204,6 @@ export default {
this.$nextTick() this.$nextTick()
.then(_ => { .then(_ => {
if (this.deviceInstanceList.length) { if (this.deviceInstanceList.length) {
this.defaultActive = this.deviceInstanceList[0].id.toString()
this.deviceInstance = this.deviceInstanceList[0].id this.deviceInstance = this.deviceInstanceList[0].id
this.$nextTick() this.$nextTick()
.then(_ => { .then(_ => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment