From 6d51f45d608e097f010763a9efd627cdd255dc89 Mon Sep 17 00:00:00 2001 From: guqing <1484563614@qq.com> Date: Tue, 27 Aug 2019 23:45:40 +0800 Subject: [PATCH] PostList replaces the original model property of PostSetting with the value of the visible binding property --- src/views/post/PostList.vue | 2 +- src/views/post/components/PostSetting.vue | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/post/PostList.vue b/src/views/post/PostList.vue index e622e44c..7e8b4271 100644 --- a/src/views/post/PostList.vue +++ b/src/views/post/PostList.vue @@ -267,7 +267,7 @@ :saveDraftButton="false" :savePublishButton="false" :saveButton="true" - v-model="postSettingVisible" + :visible="postSettingVisible" @close="onPostSettingsClose" @onRefreshPost="onRefreshPostFromSetting" @onRefreshTagIds="onRefreshTagIdsFromSetting" diff --git a/src/views/post/components/PostSetting.vue b/src/views/post/components/PostSetting.vue index 2188f46a..b3fd24f6 100644 --- a/src/views/post/components/PostSetting.vue +++ b/src/views/post/components/PostSetting.vue @@ -212,10 +212,11 @@ export default { categoryToCreate: {} } }, - model: { - prop: 'visible', - event: 'close' - }, + // TODO delete this commented code + // model: { + // prop: 'visible', + // event: 'close' + // }, props: { post: { type: Object,