打卡403权限报错
This commit is contained in:
+9
-7
@@ -865,13 +865,15 @@ export const store = {
|
|||||||
try {
|
try {
|
||||||
this.attendRules.locations = asList(await api.oaGet('/profile/attendance/locations', this.token))
|
this.attendRules.locations = asList(await api.oaGet('/profile/attendance/locations', this.token))
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
try {
|
if (this.can('system', 'attend')) {
|
||||||
const pack = await api.oaGet('/system/attend-rules', this.token)
|
try {
|
||||||
if (pack && typeof pack === 'object') {
|
const pack = await api.oaGet('/system/attend-rules', this.token)
|
||||||
this.attendRules.workStart = pack.workStart || this.attendRules.workStart
|
if (pack && typeof pack === 'object') {
|
||||||
this.attendRules.workEnd = pack.workEnd || this.attendRules.workEnd
|
this.attendRules.workStart = pack.workStart || this.attendRules.workStart
|
||||||
}
|
this.attendRules.workEnd = pack.workEnd || this.attendRules.workEnd
|
||||||
} catch (_) {}
|
}
|
||||||
|
} catch (_) {}
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
this.attendance = asList(await api.oaGet('/profile/attendance', this.token))
|
this.attendance = asList(await api.oaGet('/profile/attendance', this.token))
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user