From 8b01ffc71cf5525ba09af6d07edae1dac06cda45 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Thu, 9 Dec 2021 15:52:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE=E6=97=B6?= =?UTF-8?q?=E5=80=99=E8=BF=94=E5=9B=9E=E5=88=97=E8=A1=A8=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B8=8A=E6=AC=A1=E9=80=89=E6=8B=A9=E5=88=9B=E5=BB=BA=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/project/add/index.vue | 4 ++-- src/pages/project/list/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/project/add/index.vue b/src/pages/project/add/index.vue index adba6bd..651e096 100644 --- a/src/pages/project/add/index.vue +++ b/src/pages/project/add/index.vue @@ -293,8 +293,8 @@ export default { "setSystemId", "setProject" ]), goBack() { // 返回 - if (this.isDetail) { - this.$router.back(); + if (this.isDetail || this.item == 0) { + this.$router.push(`/project/list?founder=${this.founder}`); } else { this.$confirm("确定返回?未更新的信息将不会保存。", "提示", { type: "warning" diff --git a/src/pages/project/list/index.vue b/src/pages/project/list/index.vue index cdccf24..46d7c55 100644 --- a/src/pages/project/list/index.vue +++ b/src/pages/project/list/index.vue @@ -236,7 +236,7 @@ export default { if(this.queryDataStatus.platformId) { this.queryData = this.queryDataStatus } - if(this.$route.query.founder){ + if(this.$route.query.founder && this.$route.query.founder != 'undefined'){ this.queryData.founder = +this.$route.query.founder }else{ this.queryData.founder = 2 @@ -287,7 +287,7 @@ export default { }, add() { // 新增项目 this.setSystemId(this.systemId); - this.$router.push("/project/add"); + this.$router.push(`/project/add?founder=${this.queryData.founder}`); }, edit(row,item) { // 编辑 this.setSystemId(row.systemId);