9 评论

从删库到跑路

请问有axios版的写法吗

0 0 2023-09-07 20:26

Carly

简单示例,仅供交流哈:
let _this = this
let data = {
method: 'get',
url: 'http://localhost:8080/webroot/decision/login/cross/domain',
params: {}
}

0 0 2023-10-25 16:47

Carly

_this.$store.dispatch('commonRequest', data).then(function (res) {
let result = Constants.dealResult(res)
if (result.success) {
alert(0)
}
}

0 0 2023-10-25 16:48

Carly

).catch(function (e) {
})
// window.location.href = 'http://localhost:8080/webroot/decision/login/cross/domain'

0 0 2023-10-25 16:48

yzm621004

你好,该接口返回了一个callback函数的调用,但类型却是text/plain,是否有办法改成text/javascript ?

0 0 2021-12-24 10:03

Wendy123456

免费用户建议到问答咨询下呢:https://bbs.fanruan.com/wenda
付费用户建议询问技术支持:技术支持联系方式:QQ「800049425」、电话「400-811-8890」

0 0 2021-12-31 13:49

Ellie23

我司技术支持服务渠道已转移至服务中心,请前往服务中心联系技术支持。
服务中心:https://service.fanruan.com/

0 0 2022-12-14 14:34

用户87026926

密码明文太不安全了

0 0 2021-01-27 10:39

Wendy123456

感谢您的建议,已提产品需求

0 0 2021-04-01 15:27