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

Loading…
Cancel
Save