+ 修复过期检查无法添加内容的错误
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
return
|
||||
}
|
||||
// TODO 在这里可以添加将记录保存到数据库或本地存储的逻辑
|
||||
this.formData.expire_date = formatDate(new Date(this.formData.expire_date))
|
||||
this.formData.expire_date = this.formatDate(new Date(this.formData.expire_date))
|
||||
post(this.formData).then(data => {
|
||||
this.records.push(data)
|
||||
ElMessage.success('记录添加成功')
|
||||
@@ -154,7 +154,6 @@
|
||||
|
||||
<body>
|
||||
<div id="app" width="100%" height="100vh">
|
||||
|
||||
<el-table :data="records" style="width: 100%; height: 95vh;" :row-class-name="checkOutdate"
|
||||
@row-click="onRowClick" :default-sort="{ prop: 'expire_date', order: 'ascending' }">
|
||||
<el-table-column prop="tag" label="标签" :filters="filters" :filter-method="filterTag" fixed
|
||||
|
||||
Reference in New Issue
Block a user