@@ -307,7 +307,12 @@ export default {
async mounted() {
const res = await getSendInfo({ userId: localStorage.getItem("userId") }, { emulateJSON: true, loading: true, message: '获取寄件人信息...' })
if (res.code == 444) {
- Toast(res.error)
+ if(res.msg) {
+ Toast(res.msg)
+ }else {
+ Toast(res.error)
+ }
+
} else {
this.SendInfoValue = res
}
@@ -375,7 +375,8 @@ export default {
this.$router.push('/')
Toast('寄件成功')
+ // Toast(res.error)
+ this.$toast(res.msg)
toast.clear()
@@ -76,12 +76,7 @@ export default {
this.$router.push({ path: '/' });
Toast(res.message);
- // Toast(res.error);
-
- // //发送失败
- // Toast("发送失败!")