Browse Source

fix 桩号开启flag持久化

wangqin
qingzhengli 11 months ago
parent
commit
d413013187
  1. 13
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeVector/index.vue

13
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeVector/index.vue

@ -1,10 +1,10 @@
<template>
<div class="HomeVector">
<el-tooltip effect="light" content="桩号显隐" placement="left">
<Button :class="['btn', { 'btn-active': activeIcon }]" @click.native="handleClick('Vector')">
<img src="@screen/images/home-Vector/Vector.svg" />
</Button>
</el-tooltip>
<el-tooltip effect="light" content="桩号显隐" placement="left">
<Button :class="['btn', { 'btn-active': activeIcon }]" @click.native="handleClick('Vector')">
<img src="@screen/images/home-Vector/Vector.svg" />
</Button>
</el-tooltip>
</div>
</template>
@ -25,6 +25,9 @@ export default {
activeIcon: null,
};
},
created() {
this.activeIcon = window.showStakeText ? 'Vector' : null;
},
methods: {
handleClick(type) {
this.activeIcon = this.activeIcon === type ? null : type;

Loading…
Cancel
Save