返回金卡戴珊凤
返回金卡戴珊凤
  • 发布:2018-08-28 14:49
  • 更新:2018-08-28 15:16
  • 阅读:1856

axios中mui.alert失效,应该怎么写??

分类:MUI

axios.post(url, formData, config).then(function (res) {
if (res.status === 200) {
mui.alert(res.message,function(){
mui.openWindow({
url : "index.html",
})
})
}
}).catch(function (error) {
console.log(error)
});

2018-08-28 14:49 负责人:无 分享
已邀请:
返回金卡戴珊凤

返回金卡戴珊凤 (作者)

报错:TypeError: a.replace is not a function

返回金卡戴珊凤

返回金卡戴珊凤 (作者)

TypeError: a.replace is not a function
at s (mui.min.js:9)
at Function.v [as alert] (mui.min.js:9)
at axios.post.then (register.html:463)

  • m***@163.com

    你好,我也想问怎么写,解决了吗,还有就是封装axios请求拦截时候重新登录需要使用h5plus获得手机本地存储的一些信息放在请求拦截里面也应该怎么解决呢

    2020-11-10 23:19

该问题目前已经被锁定, 无法添加新回复