From 6384fdeb82df403df49faa062a5364b91b42ffd7 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Sat, 27 Apr 2019 19:45:37 +0800 Subject: [PATCH] Refactor code. --- src/views/post/PostEdit.vue | 6 +- src/views/sheet/SheetEdit.vue | 8 +-- src/views/sheet/SheetList.vue | 20 ++----- src/views/sheet/internal/JournalList.vue | 6 +- src/views/system/Installation.vue | 71 +++++++++++++++++++++++- src/views/system/OptionForm.vue | 13 ++--- 6 files changed, 81 insertions(+), 43 deletions(-) diff --git a/src/views/post/PostEdit.vue b/src/views/post/PostEdit.vue index da4feef0..7e9ba18e 100644 --- a/src/views/post/PostEdit.vue +++ b/src/views/post/PostEdit.vue @@ -2,11 +2,7 @@
- +
- +
@@ -112,9 +106,7 @@ cancelText="取消" v-else-if="sheet.status === 'RECYCLE'" > - 还原 + 还原 @@ -126,9 +118,7 @@ cancelText="取消" v-if="sheet.status === 'PUBLISHED' || sheet.status === 'DRAFT'" > - 回收站 + 回收站 - 删除 + 删除 diff --git a/src/views/sheet/internal/JournalList.vue b/src/views/sheet/internal/JournalList.vue index 6b612045..45a86983 100644 --- a/src/views/sheet/internal/JournalList.vue +++ b/src/views/sheet/internal/JournalList.vue @@ -2,11 +2,7 @@
diff --git a/src/views/system/Installation.vue b/src/views/system/Installation.vue index 02e284b7..5f7f58ca 100644 --- a/src/views/system/Installation.vue +++ b/src/views/system/Installation.vue @@ -1,12 +1,79 @@ diff --git a/src/views/system/OptionForm.vue b/src/views/system/OptionForm.vue index ad5e4f2f..56113ff6 100644 --- a/src/views/system/OptionForm.vue +++ b/src/views/system/OptionForm.vue @@ -1,13 +1,7 @@