mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 21:02:49 +00:00
perf: 优化应用方法
This commit is contained in:
parent
6de4865052
commit
3fca783dd8
@ -304,6 +304,9 @@ export default {
|
|||||||
}
|
}
|
||||||
return 1000;
|
return 1000;
|
||||||
},
|
},
|
||||||
|
isFullScreen: () => {
|
||||||
|
return window.innerWidth < 768 || this.windowType === 'popout'
|
||||||
|
},
|
||||||
extraCallA: (...args) => {
|
extraCallA: (...args) => {
|
||||||
if (args.length > 0 && typeof args[0] === 'string') {
|
if (args.length > 0 && typeof args[0] === 'string') {
|
||||||
const methodName = args[0];
|
const methodName = args[0];
|
||||||
@ -314,8 +317,13 @@ export default {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
isFullScreen: () => {
|
extraCallStore: async (...args) => {
|
||||||
return window.innerWidth < 768 || this.windowType === 'popout'
|
if (args.length > 0 && typeof args[0] === 'string') {
|
||||||
|
const actionName = args[0];
|
||||||
|
const payload = args.slice(1);
|
||||||
|
await this.$store.dispatch(actionName, ...payload)
|
||||||
|
}
|
||||||
|
return null;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user