mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
feat:优化应用
This commit is contained in:
parent
b3c79be4e7
commit
10960eec59
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user