diff --git a/src/views/main-navbar.vue b/src/views/main-navbar.vue index 90525cd..bbcb870 100644 --- a/src/views/main-navbar.vue +++ b/src/views/main-navbar.vue @@ -185,12 +185,7 @@ export default { pendingReview: 0, pendingSum: 0, }, - queryToolReview: { - site: this.$store.state.user.site, - userId: this.$store.state.user.name, - strUserId: this.$store.state.user.id, - }, - toolReviewTimer: null, + } }, watch: { @@ -239,10 +234,10 @@ export default { }, mounted() { - this.toolReviewTimer = setInterval(this.getReviewToolCount, 1000 * 60); + }, beforeDestroy() { - clearInterval(this.toolReviewTimer); + }, methods: { // 打开页面设置 @@ -263,14 +258,7 @@ export default { this.refresh() }) }, - // 获取待审核的是工具申请单数量 - getReviewToolCount() { - getReviewToolCount(this.queryToolReview).then(({data}) => { - if (data.code == 0) { - this.pending.pendingReview = data.data - } - }) - }, + // 帮助文档列表 helpFileList() { @@ -349,7 +337,7 @@ export default { created() { this.getLanguageList() this.getFunctionButtonList() - this.getReviewToolCount() + } }