Skip to content

Commit f1c94a6

Browse files
committed
refactor(banned): replace moment with dayjs
1 parent 7ad30df commit f1c94a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/views/General/BannedClient.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ import useI18nTl from '@/hooks/useI18nTl'
9999
import usePaginationWithHasNext from '@/hooks/usePaginationWithHasNext'
100100
import { BannedItem } from '@/types/systemModule'
101101
import { Plus, RefreshLeft, Remove, Search } from '@element-plus/icons-vue'
102+
import dayjs from 'dayjs'
102103
import { ElMessage, ElMessageBox } from 'element-plus'
103104
import moment from 'moment'
104105
import { Banned } from 'src/types/auth'
@@ -174,7 +175,7 @@ const refreshListData = () => {
174175
const expiredAt = (value: string) => {
175176
return value === BANNED_NEVER_EXPIRE_VALUE
176177
? tl('neverExpire')
177-
: moment(value).format('YYYY-MM-DD HH:mm')
178+
: dayjs(value).format('YYYY-MM-DD HH:mm')
178179
}
179180
180181
const { getLabelFromValue } = useBannedType()

0 commit comments

Comments
 (0)