fix: Imported tool create
This commit is contained in:
parent
be4f0ffb6b
commit
07ee09c50f
@ -560,9 +560,13 @@ function importTool(file: any) {
|
|||||||
.then(async (res: any) => {
|
.then(async (res: any) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
tool.setToolList([])
|
tool.setToolList([])
|
||||||
getList()
|
return user.profile()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.then(() => {
|
||||||
|
getList()
|
||||||
|
|
||||||
|
})
|
||||||
.catch((e: any) => {
|
.catch((e: any) => {
|
||||||
if (e.code === 400) {
|
if (e.code === 400) {
|
||||||
MsgConfirm(t('common.tip'), t('views.application.tip.professionalMessage'), {
|
MsgConfirm(t('common.tip'), t('views.application.tip.professionalMessage'), {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user