From a064dc83f3a64719381ccb4314fae53e2bed7cc5 Mon Sep 17 00:00:00 2001 From: Jimi Date: Fri, 2 Jul 2021 21:56:18 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E9=80=89?= =?UTF-8?q?=E6=A1=86=E7=BB=84=E7=9A=84=E9=80=89=E9=A1=B9=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/form/editor/RightPanel.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/form/editor/RightPanel.vue b/src/views/form/editor/RightPanel.vue index 9ac79d9..2c673ee 100644 --- a/src/views/form/editor/RightPanel.vue +++ b/src/views/form/editor/RightPanel.vue @@ -1404,8 +1404,9 @@ export default { addSelectItem() { let lastItem = _.last(this.activeData.__slot__.options); this.activeData.__slot__.options.push({ - label: "", - value: lastItem ? lastItem.value + 1 : 1, + label: '', + value: lastItem ? lastItem.value === 0 ? _.max(_.values(this.activeData.__slot__.options.map(item => + item.value))) + 1 : lastItem.value + 1 : 1 }); }, async blukAddSelectItems() { From d971bac82009e62edfbef3a08b02484c5f37bcad Mon Sep 17 00:00:00 2001 From: Jimi Date: Wed, 7 Jul 2021 10:49:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E8=B7=B3=E8=BD=AC=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project/my/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/project/my/index.vue b/src/views/project/my/index.vue index d7ffddb..5997e39 100644 --- a/src/views/project/my/index.vue +++ b/src/views/project/my/index.vue @@ -280,7 +280,7 @@ export default { this.dataShowType = type }, toProjectHandle(key, type) { - this.$router.push({path: '/project/form', query: {key: key, active: type}}) + this.$router.push({path: `/project/form/${type}`, query: {key: key, active: type}}) }, deleteProject(key) { this.$api.post('/user/project/delete', {'key': key}).then(res => {