mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 13:19:31 +08:00
update: 修改我的页面文章归档的显示策略
This commit is contained in:
@@ -84,13 +84,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {checkHasAdminLogin} from '@/utils/auth.js';
|
||||||
checkHasAdminLogin
|
|
||||||
} from '@/utils/auth.js';
|
|
||||||
import CheckAppUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
|
import CheckAppUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
|
||||||
import {
|
import {CheckWxUpdate} from '@/utils/update.js';
|
||||||
CheckWxUpdate
|
|
||||||
} from '@/utils/update.js';
|
|
||||||
|
|
||||||
import tmGrouplist from '@/tm-vuetify/components/tm-grouplist/tm-grouplist.vue';
|
import tmGrouplist from '@/tm-vuetify/components/tm-grouplist/tm-grouplist.vue';
|
||||||
import tmListitem from '@/tm-vuetify/components/tm-listitem/tm-listitem.vue';
|
import tmListitem from '@/tm-vuetify/components/tm-listitem/tm-listitem.vue';
|
||||||
@@ -181,16 +177,16 @@
|
|||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
_isWx = true;
|
_isWx = true;
|
||||||
// #endif
|
// #endif
|
||||||
this.navList = [{
|
this.navList = [
|
||||||
|
{
|
||||||
key: 'archives',
|
key: 'archives',
|
||||||
title: '文章归档',
|
title: this.haloConfigs.basicConfig.auditModeEnabled ? '内容归档' : '文章归档',
|
||||||
leftIcon: 'halocoloricon-classify',
|
leftIcon: 'halocoloricon-classify',
|
||||||
leftIconColor: 'red',
|
leftIconColor: 'red',
|
||||||
rightText: '已归档的文章',
|
rightText: this.haloConfigs.basicConfig.auditModeEnabled ? '已归档的内容' : '已归档的文章',
|
||||||
path: '/pagesA/archives/archives',
|
path: '/pagesA/archives/archives',
|
||||||
isAdmin: false,
|
isAdmin: false,
|
||||||
type: 'page',
|
type: 'page',
|
||||||
// show: !this.haloConfigs.basicConfig.auditModeEnabled
|
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
key: 'love',
|
key: 'love',
|
||||||
@@ -292,28 +288,7 @@
|
|||||||
// type: 'poup',
|
// type: 'poup',
|
||||||
// show: true
|
// 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() {
|
fnGetData() {
|
||||||
@@ -363,7 +338,8 @@
|
|||||||
url: '/pagesB/login/login'
|
url: '/pagesB/login/login'
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(err => {});
|
.catch(err => {
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -384,7 +360,8 @@
|
|||||||
this.navList.find(x => x.key == 'cache').rightText =
|
this.navList.find(x => x.key == 'cache').rightText =
|
||||||
uni.getStorageInfoSync().currentSize + 'KB';
|
uni.getStorageInfoSync().currentSize + 'KB';
|
||||||
})
|
})
|
||||||
.catch(err => {});
|
.catch(err => {
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
case 'update':
|
case 'update':
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
|
|||||||
Reference in New Issue
Block a user