This commit is contained in:
777
2025-10-21 17:23:33 +08:00
parent 7bae09aec8
commit 94b7c4a0f8
10 changed files with 793 additions and 9 deletions

View File

@@ -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(){