How to use the vux.querystring.stringify function in vux

To help you get started, we’ve selected a few vux examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Kerbores / NUTZ-ONEKEY / thunder / thunder-web / src / main / wechat / src / http / index.js View on Github external
post(url, data, done, fail) {
    return axios({
      method: "post",
      data: querystring.stringify(data),
      headers: {
        "X-Requested-With": "XMLHttpRequest",
        "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
      .then(data => done(data))
      .catch(error => {
        if (fail) {
        } else {
            message: error,
            animateIn: "shake",
            animateOut: "fadeOutDown",
            duration: 3000