| 插件 | API接口 V7.8 |
| 应用作者 | 迅睿官方团队 |
| 发布时间 | 2019-03-14 09:57:26 |
| 更新时间 | 2025-03-06 07:21:54 |
this.$refs.loginFormRef.validate(async (valid) => {
if (!valid) return
const { data: res } = await this.$http.post(
'/index.php?v=1&appid=1&appsecret=YD26F9E3E7EC474&s=member&c=login&m=index',
this.loginForm,
{ headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }
)
})loginForm: {
username: '',
password: '',
is_ajax: '1'
}
上面是我的登录接口请求,我怎么实现官方的请求,
is_ajax=1&data[username]=admin&data[password]=admin
我怎么也弄不成官方的data[username]=admin
我的请求是这样的

请问怎么改进呢