1231233
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<el-link class='right-menu-item' style="font-size: 14px; color: red" type="danger" @click="payNoticeGo">{{payNotice}}</el-link>
|
||||
<search id="header-search" class="right-menu-item" />
|
||||
|
||||
<el-tooltip content="待审核" effect="dark" placement="bottom">
|
||||
<el-tooltip content="待审核" effect="dark" placement="bottom" v-if="!proxy">
|
||||
<notify-message class="right-menu-item hover-effect" />
|
||||
</el-tooltip>
|
||||
<screenfull id="screenfull" class="right-menu-item hover-effect" />
|
||||
@@ -92,14 +92,25 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
proxy: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// 进入系统后立即启动定时任务
|
||||
this.$store.dispatch('startPolling')
|
||||
console.log(this.payNotice);
|
||||
const userRoles = this.$store.getters.roles;
|
||||
this.proxy = userRoles.includes("proxy")
|
||||
if(!this.proxy){
|
||||
// 进入系统后立即启动定时任务
|
||||
this.$store.dispatch('startPolling')
|
||||
console.log(this.payNotice);
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 退出系统时关闭定时任务(可选)
|
||||
this.$store.dispatch('stopPolling')
|
||||
if(!this.proxy){
|
||||
// 退出系统时关闭定时任务(可选)
|
||||
this.$store.dispatch('stopPolling')
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
payNoticeGo(){
|
||||
|
||||
Reference in New Issue
Block a user