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