From c9cb84a28df6a0ff9df88d6acba33d320257e5b5 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 4 Dec 2021 02:15:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/store/modules/list.js | 1 + src/renderer/views/list/components/MyLists.vue | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/renderer/store/modules/list.js b/src/renderer/store/modules/list.js index fcd688cd..bce27dd7 100644 --- a/src/renderer/store/modules/list.js +++ b/src/renderer/store/modules/list.js @@ -317,6 +317,7 @@ const mutations = { id, list: [], source, + position, sourceListId, } addUserList(newList) diff --git a/src/renderer/views/list/components/MyLists.vue b/src/renderer/views/list/components/MyLists.vue index 5891adbd..2232f73c 100644 --- a/src/renderer/views/list/components/MyLists.vue +++ b/src/renderer/views/list/components/MyLists.vue @@ -318,13 +318,13 @@ export default { let list switch (index) { case -2: - list = { ...defaultList, list: getList(defaultList.id) } + list = { ...this.defaultList, list: getList(this.defaultList.id) } break case -1: - list = { ...loveList, list: getList(loveList.id) } + list = { ...this.loveList, list: getList(this.loveList.id) } break default: - list = userLists[index] + list = this.userLists[index] if (!list) return null list = { ...list, list: getList(list.id) } break @@ -377,7 +377,7 @@ export default { confirmButtonText: this.$t('lists__import_part_button_confirm'), }) if (confirm) { - listData.data.name = list.name + listData.data.name = targetList.name this.setList({ name: listData.data.name, id: listData.data.id,