From 802f61a984f82c6064dbdcceb0119fa2548706c8 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Tue, 29 Aug 2023 17:33:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E6=AC=A1=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main-navbar.vue | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) 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() + } }