fix(系统设置): 创建项目跳转问题

This commit is contained in:
shiziyuan9527 2020-12-09 10:47:31 +08:00
parent 9349f06c05
commit 41290ee516
3 changed files with 7 additions and 16 deletions

@ -1 +1 @@
Subproject commit 905ca8af61ce966d26109e9c5c8c0aee3ca1324e
Subproject commit bb494fc68a2367359c9048fa7250c7618de4afb6

View File

@ -142,25 +142,13 @@ export default {
if (this.$route.path.split('/')[2] === 'project' &&
this.$route.path.split('/')[3] === 'create') {
this.create();
// this.$router.push('/setting/project');
this.$router.replace('/setting/project/all');
}
this.list();
},
activated() {
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: {
currentUser: () => {
return getCurrentUser();
@ -177,7 +165,7 @@ export default {
return false;
}
this.title = this.$t('project.create');
listenGoBack(this.handleClose);
// listenGoBack(this.handleClose);
this.createVisible = true;
this.form = {};
},
@ -245,6 +233,9 @@ export default {
handleClose() {
removeGoBackListener(this.handleClose);
this.createVisible = false;
this.tapd = false;
this.jira = false;
this.zentao = false;
},
search() {
this.list();

@ -1 +1 @@
Subproject commit 29a8fc09602fde5708af06582ac972d98eb69836
Subproject commit a22a3005d9bd254793fcf634d72539cbdf31be3a