请问有axios版的写法吗
赞 0 踩 0 2023-09-07 20:26
简单示例,仅供交流哈: let _this = this let data = { method: 'get', url: 'http://localhost:8080/webroot/decision/login/cross/domain', params: {} }
赞 0 踩 0 2023-10-25 16:47
_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
).catch(function (e) { }) // window.location.href = 'http://localhost:8080/webroot/decision/login/cross/domain'
你好,该接口返回了一个callback函数的调用,但类型却是text/plain,是否有办法改成text/javascript ?
赞 0 踩 0 2021-12-24 10:03
免费用户建议到问答咨询下呢:https://bbs.fanruan.com/wenda 付费用户建议询问技术支持:技术支持联系方式:QQ「800049425」、电话「400-811-8890」
赞 0 踩 0 2021-12-31 13:49
我司技术支持服务渠道已转移至服务中心,请前往服务中心联系技术支持。 服务中心:https://service.fanruan.com/
赞 0 踩 0 2022-12-14 14:34
密码明文太不安全了
赞 0 踩 0 2021-01-27 10:39
感谢您的建议,已提产品需求
赞 0 踩 0 2021-04-01 15:27
9 评论
请问有axios版的写法吗
赞 0 踩 0 2023-09-07 20:26
简单示例,仅供交流哈:
let _this = this
let data = {
method: 'get',
url: 'http://localhost:8080/webroot/decision/login/cross/domain',
params: {}
}
赞 0 踩 0 2023-10-25 16:47
_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
).catch(function (e) {
})
// window.location.href = 'http://localhost:8080/webroot/decision/login/cross/domain'
赞 0 踩 0 2023-10-25 16:48
你好,该接口返回了一个callback函数的调用,但类型却是text/plain,是否有办法改成text/javascript ?
赞 0 踩 0 2021-12-24 10:03
免费用户建议到问答咨询下呢:https://bbs.fanruan.com/wenda
付费用户建议询问技术支持:技术支持联系方式:QQ「800049425」、电话「400-811-8890」
赞 0 踩 0 2021-12-31 13:49
我司技术支持服务渠道已转移至服务中心,请前往服务中心联系技术支持。
服务中心:https://service.fanruan.com/
赞 0 踩 0 2022-12-14 14:34
密码明文太不安全了
赞 0 踩 0 2021-01-27 10:39
感谢您的建议,已提产品需求
赞 0 踩 0 2021-04-01 15:27