浏览代码

fixed post

tags/0.1.0
Robin Thoni 9 年前
父节点
当前提交
7ac843268b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/request.js

+ 1
- 1
src/request.js 查看文件

60
                     url: url,
60
                     url: url,
61
                     method: method,
61
                     method: method,
62
                     params: dataGet,
62
                     params: dataGet,
63
-                    data: $.param(dataPost),
63
+                    data: dataPost == null ? null : $.param(dataPost),
64
                     headers: {
64
                     headers: {
65
                         'Content-Type': "application/x-www-form-urlencoded"
65
                         'Content-Type': "application/x-www-form-urlencoded"
66
                     }
66
                     }

正在加载...
取消
保存