update: 修改我的页面文章归档的显示策略

This commit is contained in:
小莫唐尼 2024-10-28 18:28:56 +08:00
parent 2b717ad449
commit e8edc03526

View File

@ -84,13 +84,9 @@
</template>
<script>
import {
checkHasAdminLogin
} from '@/utils/auth.js';
import {checkHasAdminLogin} from '@/utils/auth.js';
import CheckAppUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
import {
CheckWxUpdate
} from '@/utils/update.js';
import {CheckWxUpdate} from '@/utils/update.js';
import tmGrouplist from '@/tm-vuetify/components/tm-grouplist/tm-grouplist.vue';
import tmListitem from '@/tm-vuetify/components/tm-listitem/tm-listitem.vue';
@ -181,16 +177,16 @@
// #ifdef MP-WEIXIN
_isWx = true;
// #endif
this.navList = [{
this.navList = [
{
key: 'archives',
title: '文章归档',
title: this.haloConfigs.basicConfig.auditModeEnabled ? '内容归档' : '文章归档',
leftIcon: 'halocoloricon-classify',
leftIconColor: 'red',
rightText: '已归档的文章',
rightText: this.haloConfigs.basicConfig.auditModeEnabled ? '已归档的内容' : '已归档的文章',
path: '/pagesA/archives/archives',
isAdmin: false,
type: 'page',
// show: !this.haloConfigs.basicConfig.auditModeEnabled
show: true
}, {
key: 'love',
@ -292,28 +288,7 @@
// type: 'poup',
// show: true
// },
// {
// key: 'setting',
// title: '',
// leftIcon: 'icon-cog',
// leftIconColor: 'indigo',
// rightText: ``,
// path: '/pagesA/setting/setting',
// isAdmin: false,
// type: 'page',
// show: false
// },
// {
// key: 'admin',
// title: '',
// leftIcon: 'icon-lock',
// leftIconColor: 'gray',
// rightText: '',
// path: '/pagesB/admin/admin',
// isAdmin: true,
// type: 'page',
// show: false
// }
];
},
fnGetData() {
@ -363,7 +338,8 @@
url: '/pagesB/login/login'
});
})
.catch(err => {});
.catch(err => {
});
return;
}
@ -384,7 +360,8 @@
this.navList.find(x => x.key == 'cache').rightText =
uni.getStorageInfoSync().currentSize + 'KB';
})
.catch(err => {});
.catch(err => {
});
break;
case 'update':
// #ifdef APP-PLUS