fix(系统设置): 新建项目后刷新页面
--bug=1018033 --user=李玉号 【系统设置】新建项目后切换到新建项目中再点击系统设置,左侧菜单缺少功能模块 https://www.tapd.cn/55049933/s/1261967
This commit is contained in:
parent
f1ea7c2263
commit
9939b966ba
|
@ -304,8 +304,14 @@ export default {
|
||||||
let promise = this.form.id ? modifyProject(this.form) : saveProject(this.form);
|
let promise = this.form.id ? modifyProject(this.form) : saveProject(this.form);
|
||||||
this.loading = promise.then(() => {
|
this.loading = promise.then(() => {
|
||||||
this.createVisible = false;
|
this.createVisible = false;
|
||||||
this.reload();
|
|
||||||
this.$success(this.$t('commons.save_success'));
|
this.$success(this.$t('commons.save_success'));
|
||||||
|
if (!this.form.id) {
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.reload();
|
||||||
|
}, 400);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.reload();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -363,7 +363,7 @@ export default {
|
||||||
},
|
},
|
||||||
list() {
|
list() {
|
||||||
this.condition.workspaceId = getCurrentWorkspaceId();
|
this.condition.workspaceId = getCurrentWorkspaceId();
|
||||||
getProjectPages(this.currentPage, this.pageSize, this.condition).then(res => {
|
this.loading = getProjectPages(this.currentPage, this.pageSize, this.condition).then(res => {
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
let {listObject, itemCount} = data;
|
let {listObject, itemCount} = data;
|
||||||
this.items = listObject;
|
this.items = listObject;
|
||||||
|
|
Loading…
Reference in New Issue