diff --git a/src/views/xm/core/xmIteration/XmIterationInfo.vue b/src/views/xm/core/xmIteration/XmIterationInfo.vue index 0e4e82d8..c0857254 100644 --- a/src/views/xm/core/xmIteration/XmIterationInfo.vue +++ b/src/views/xm/core/xmIteration/XmIterationInfo.vue @@ -84,16 +84,7 @@ 'userInfo','roles' ]), }, - watch:{ - xmIteration:function(xmIteration){ - var oldInfotype=this.infotype - this.infotype='' - this.$nextTick(()=>{ - - this.infotype=oldInfotype - }) - - } + watch:{ }, data() { return { @@ -159,8 +150,10 @@ if(infotype=='返回'){ this.goBack() + }else{ + localStorage.setItem('iteration-infotype',infotype); } - localStorage.setItem('iteration-infotype',infotype); + }, handleExport() { this.downloadLoading = true diff --git a/src/views/xm/core/xmProject/XmProjectInfo.vue b/src/views/xm/core/xmProject/XmProjectInfo.vue index 190f8ca5..75dd0ddd 100644 --- a/src/views/xm/core/xmProject/XmProjectInfo.vue +++ b/src/views/xm/core/xmProject/XmProjectInfo.vue @@ -249,12 +249,12 @@ import XmPlan from '../xmTask/XmPlan.vue'; }, - setInfotype(infotype){ - this.infotype=infotype; + setInfotype(infotype){ if(infotype=='返回'){ this.goBack() }else{ + this.infotype=infotype; localStorage.setItem('project-infotype',infotype); } },