From f8855e3ee0b9e34043072259427fb50891581ca7 Mon Sep 17 00:00:00 2001
From: wpf <2187978347@qq.com>
Date: Sun, 3 Sep 2023 00:46:40 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug=EF=BC=8C=E6=96=B0?=
=?UTF-8?q?=E5=A2=9E=E7=99=BB=E8=AE=B0=E4=BF=A1=E6=81=AF=E8=8A=82=E6=B5=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
subpkg/archives/archives.vue | 11 +++++------
subpkg/newArchives/newArchives.vue | 2 +-
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/subpkg/archives/archives.vue b/subpkg/archives/archives.vue
index 95c0edc..8d91c27 100644
--- a/subpkg/archives/archives.vue
+++ b/subpkg/archives/archives.vue
@@ -144,6 +144,7 @@
task_id: -1,
is_admin: false,
list: [],
+ showView: false,
current: 0,
tabLists: [{
name: '未更新',
@@ -161,6 +162,10 @@
}
},
onLoad(options) {
+ // 是否显示查看和更新按钮
+ if(!this.$store.state.app.userInfo.admin_id && this.$store.state.app.userInfo.is_captain){
+ this.showView = true;
+ }
// 判断是否包含小队长id
if (options.id) this.user_id = options.id;
else if (this.$store.state.app.userInfo.admin_id == 0) { //如果用户是小队长,将带上自己的id
@@ -180,12 +185,6 @@
},
onShow() {
- },
- computed: {
- // 是否显示查看和更新按钮
- showView() {
- return !this.$store.state.app.userInfo.admin_id && this.$store.state.app.userInfo.is_captain;
- }
},
onReachBottom() {
this.loadInformationList();
diff --git a/subpkg/newArchives/newArchives.vue b/subpkg/newArchives/newArchives.vue
index f36aeb4..1758ed8 100644
--- a/subpkg/newArchives/newArchives.vue
+++ b/subpkg/newArchives/newArchives.vue
@@ -101,7 +101,7 @@
-
+