Skip to content

Commit 9af9835

Browse files
committed
细节调整
1 parent 32792f5 commit 9af9835

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/views/project/space/task.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -684,11 +684,13 @@
684684
},
685685
watch: {
686686
$route(to, from) {
687-
this.code = to.params.code;
688-
this.defaultExecutor = this.userInfo;
689-
this.getProject();
690-
this.getProjectMembers();
691-
this.init();
687+
if (this.code != to.params.code) {
688+
this.code = to.params.code;
689+
this.defaultExecutor = this.userInfo;
690+
this.getProject();
691+
this.getProjectMembers();
692+
this.init();
693+
}
692694
if (from.name == 'taskdetail') {
693695
const stageIndex = from.query.from;
694696
// this.getTaskStages(false);

0 commit comments

Comments
 (0)