日期格式化改用dayjs

This commit is contained in:
不做码农
2022-05-21 11:07:41 +08:00
parent 60cd687575
commit a2178731e2
2 changed files with 45 additions and 37 deletions
+1 -1
View File
@@ -53,7 +53,7 @@
<el-table-column label="创建者" align="center" prop="createBy" width="100" />
<el-table-column label="创建时间" align="center" prop="createTime" width="100">
<template #default="scope">
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
<span>{{ parseTime(scope.row.createTime, 'YYYY-MM-DD') }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">