Skip to content
Snippets Groups Projects
Commit 66daef5e authored by JunGu Kang's avatar JunGu Kang
Browse files

#39 Fix Schedule Detail View Update Bug

parent 94ec94ab
No related branches found
No related tags found
2 merge requests!37Deploy,!35#39 Fix Schedule Detail View Update Bug
Pipeline #4366 passed
......@@ -226,7 +226,10 @@ export default {
const [json, res] = values;
if (res.status === 404) throw new Error('존재하지 않는 데이터입니다.');
if (res.status !== 200) throw new Error(json.message);
this.schedule = json.schedule;
const { schedule } = json;
schedule.createdAt = moment(schedule.createdAt).format('YYYY-MM-DD HH:mm:ss');
schedule.updatedAt = moment(schedule.updatedAt).format('YYYY-MM-DD HH:mm:ss');
this.schedule = schedule;
})
.catch((e) => {
this.error.message = e.message;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment