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);