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