feat:优化应用

This commit is contained in:
weifashi 2023-08-16 15:28:32 +08:00
parent b3c79be4e7
commit 10960eec59

View File

@ -252,15 +252,29 @@ export default {
appPushShow: false,
}
},
created() {
},
mounted() {
},
activated() {
this.initList()
},
computed: {
...mapState([
'userIsAdmin',
'reportUnreadNumber',
'approveUnreadNumber',
'cacheDialogs',
'windowOrientation',
]),
},
watch: {
windowOrientation(){
this.initList()
}
},
methods: {
initList(){
this.applyList = [
{ value: "approve", label: "审批中心", src: $A.apiUrl('../images/apply/approve.svg') },
{ value: "report", label: "工作报告", src: $A.apiUrl('../images/apply/report.svg') },
@ -283,27 +297,7 @@ export default {
this.applyList.push({ value: "setting", label: "设置", src: $A.apiUrl('../images/apply/setting.svg') })
}
},
computed: {
...mapState([
'userInfo',
'userIsAdmin',
'reportUnreadNumber',
'approveUnreadNumber',
'cacheDialogs',
'windowOrientation',
]),
},
watch: {
},
methods: {
//
applyClick(item) {
this.$emit("on-click", item.value)
switch (item.value) {