|
@@ -289,7 +289,7 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- Toast.loading({
|
|
|
+ const toast = Toast.loading({
|
|
|
message: '保存中...',
|
|
|
forbidClick: true,
|
|
|
duration: 0
|
|
@@ -308,18 +308,14 @@ export default {
|
|
|
expressWeight: this.Kilogram,//公斤
|
|
|
|
|
|
}
|
|
|
- Toast.clear()
|
|
|
const res = await saveInternal({ ...parmas })
|
|
|
if (res.msg == 'success') {
|
|
|
- Toast.clear()
|
|
|
this.$router.push('/')
|
|
|
Toast('寄件成功')
|
|
|
} else {
|
|
|
- Toast.clear()
|
|
|
- Toast('寄件失败')
|
|
|
+ Toast(res.error)
|
|
|
}
|
|
|
- console.log(res, 'res')
|
|
|
- Toast.clear()
|
|
|
+ toast.clear()
|
|
|
|
|
|
}
|
|
|
},
|