Browse Source

修复时间问题

李帅 3 months ago
parent
commit
ea09f8f832
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/views/settingsPage/announcements/index.vue

+ 1 - 5
src/views/settingsPage/announcements/index.vue

@@ -300,11 +300,7 @@ export default {
300 300
       this.dialogVisible = true
301 301
       this.title = '编辑公告'
302 302
       const res = await noticeManageDetails({ id: val.id })
303
-      this.ruleForm = res.data
304
-      this.ruleForm.time = [
305
-        res.data.noticeStartTime,
306
-        res.data.noticeEndTime
307
-      ]
303
+      this.ruleForm = {...res.data,time: [res.data.noticeStartTime, res.data.noticeEndTime]}
308 304
       this.$forceUpdate()
309 305
     },
310 306
     del(val) {