|
|
|
@ -45,20 +45,22 @@ const install = (Vue, vm) => {
|
|
|
|
let pathname = window.location.pathname;
|
|
|
|
let pathname = window.location.pathname;
|
|
|
|
window.location.href = origin + pathname;
|
|
|
|
window.location.href = origin + pathname;
|
|
|
|
}, 1500)
|
|
|
|
}, 1500)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|
|
|
icon: "none",
|
|
|
|
|
|
|
|
title: res?.data?.errmsg
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
uni.showToast({
|
|
|
|
|
|
|
|
icon: "none",
|
|
|
|
|
|
|
|
title: res?.data?.errmsg
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return res.data;
|
|
|
|
return res.data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
uni.showToast({
|
|
|
|
// uni.showToast({
|
|
|
|
icon: "none",
|
|
|
|
// icon: "none",
|
|
|
|
title: res.statusCode
|
|
|
|
// title: res.statusCode
|
|
|
|
})
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|