fix(系统设置): 创建项目跳转问题
This commit is contained in:
parent
9349f06c05
commit
41290ee516
|
@ -1 +1 @@
|
||||||
Subproject commit 905ca8af61ce966d26109e9c5c8c0aee3ca1324e
|
Subproject commit bb494fc68a2367359c9048fa7250c7618de4afb6
|
|
@ -142,25 +142,13 @@ export default {
|
||||||
if (this.$route.path.split('/')[2] === 'project' &&
|
if (this.$route.path.split('/')[2] === 'project' &&
|
||||||
this.$route.path.split('/')[3] === 'create') {
|
this.$route.path.split('/')[3] === 'create') {
|
||||||
this.create();
|
this.create();
|
||||||
// this.$router.push('/setting/project');
|
this.$router.replace('/setting/project/all');
|
||||||
}
|
}
|
||||||
this.list();
|
this.list();
|
||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
this.list();
|
this.list();
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
'$route'(to) {
|
|
||||||
if (this.$route.path.split('/')[2] === 'project' &&
|
|
||||||
to.path.split('/')[3] === 'create') {
|
|
||||||
this.create();
|
|
||||||
// this.$router.push('/setting/project');
|
|
||||||
} else if (this.$route.path.split('/')[2] === 'project' &&
|
|
||||||
to.path.split('/')[3] === 'all') {
|
|
||||||
this.list();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
computed: {
|
||||||
currentUser: () => {
|
currentUser: () => {
|
||||||
return getCurrentUser();
|
return getCurrentUser();
|
||||||
|
@ -177,7 +165,7 @@ export default {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.title = this.$t('project.create');
|
this.title = this.$t('project.create');
|
||||||
listenGoBack(this.handleClose);
|
// listenGoBack(this.handleClose);
|
||||||
this.createVisible = true;
|
this.createVisible = true;
|
||||||
this.form = {};
|
this.form = {};
|
||||||
},
|
},
|
||||||
|
@ -245,6 +233,9 @@ export default {
|
||||||
handleClose() {
|
handleClose() {
|
||||||
removeGoBackListener(this.handleClose);
|
removeGoBackListener(this.handleClose);
|
||||||
this.createVisible = false;
|
this.createVisible = false;
|
||||||
|
this.tapd = false;
|
||||||
|
this.jira = false;
|
||||||
|
this.zentao = false;
|
||||||
},
|
},
|
||||||
search() {
|
search() {
|
||||||
this.list();
|
this.list();
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 29a8fc09602fde5708af06582ac972d98eb69836
|
Subproject commit a22a3005d9bd254793fcf634d72539cbdf31be3a
|
Loading…
Reference in New Issue