mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-07 01:46:43 +08:00
创建项目异常处理,防止确定按钮一直转圈
This commit is contained in:
@@ -502,6 +502,7 @@ export default {
|
||||
id: state.projectInfo.id,
|
||||
}).then((res) => {
|
||||
return res.data.data == 1;
|
||||
}).catch((err) => {
|
||||
});
|
||||
if (offName) {
|
||||
message.destroy();
|
||||
@@ -519,6 +520,10 @@ export default {
|
||||
path: "/taskpage",
|
||||
query: { projectId: res.data.data },
|
||||
});
|
||||
}).catch((err) => {
|
||||
state.loading = false;
|
||||
message.destroy();
|
||||
message.error('创建项目失败,请重新创建');
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user