fix(系统设置): 新建项目后刷新页面

--bug=1018033 --user=李玉号
【系统设置】新建项目后切换到新建项目中再点击系统设置,左侧菜单缺少功能模块
https://www.tapd.cn/55049933/s/1261967
This commit is contained in:
shiziyuan9527 2022-10-14 17:12:44 +08:00 committed by lyh
parent f1ea7c2263
commit 9939b966ba
2 changed files with 8 additions and 2 deletions

View File

@ -304,8 +304,14 @@ export default {
let promise = this.form.id ? modifyProject(this.form) : saveProject(this.form);
this.loading = promise.then(() => {
this.createVisible = false;
this.reload();
this.$success(this.$t('commons.save_success'));
if (!this.form.id) {
setTimeout(() => {
window.location.reload();
}, 400);
return;
}
this.reload();
});
});
},

View File

@ -363,7 +363,7 @@ export default {
},
list() {
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 {listObject, itemCount} = data;
this.items = listObject;