vgapp 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/modules/module-fn.js +10 -2
- package/package.json +1 -1
package/app/modules/module-fn.js
CHANGED
|
@@ -102,10 +102,18 @@ const Ajax = {
|
|
|
102
102
|
|
|
103
103
|
if (!isEmptyObj(data)) {
|
|
104
104
|
for (let key in data) {
|
|
105
|
-
|
|
105
|
+
console.log(key)
|
|
106
|
+
query.push(encodeURIComponent(key) + '=' + encodeURIComponent(data[key]));
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
|
-
|
|
109
|
+
|
|
110
|
+
let uri = '';
|
|
111
|
+
if (query.length) {
|
|
112
|
+
uri += url.includes('?') ? '&' : '?';
|
|
113
|
+
uri += query.join('&');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
Ajax.send(url + uri, callback, 'GET', null, async)
|
|
109
117
|
},
|
|
110
118
|
|
|
111
119
|
post: function (url, data, callback, async) {
|