mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +00:00
fix: 修复日期显示问题及用户应用授权更新路由问题
This commit is contained in:
@@ -73,6 +73,9 @@ function cleanDateStr(d) {
|
||||
}
|
||||
|
||||
export function toSafeLocalDateStr(d) {
|
||||
if (d === '') {
|
||||
return ''
|
||||
}
|
||||
const date = safeDate(d)
|
||||
// let date_s = date.toLocaleString(getUserLang(), {hour12: false});
|
||||
const date_s = date.toLocaleString(getUserLang(), { hourCycle: 'h23' })
|
||||
|
@@ -49,7 +49,9 @@ export default {
|
||||
},
|
||||
actions: {
|
||||
formatterArgs: {
|
||||
updateRoute: 'RemoteAppPermissionUpdate',
|
||||
onUpdate: ({ row, col, cellValue }) => {
|
||||
this.$router.push({ name: 'ApplicationPermissionUpdate', params: { id: cellValue }})
|
||||
},
|
||||
performDelete: ({ row, col }) => {
|
||||
const id = row.id
|
||||
const url = `/api/v1/perms/application-permissions/${id}/?user_id=${this.object.id}&draw=1`
|
||||
|
Reference in New Issue
Block a user