uview-plus 3.4.0 → 3.4.1
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/changelog.md +1 -1
- package/index.js +6 -2
- package/libs/config/config.js +0 -2
- package/libs/config/props.js +6 -2
- package/libs/luch-request/core/Request.js +1 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
package/index.js
CHANGED
|
@@ -119,8 +119,12 @@ const install = (Vue, upuiParams = '') => {
|
|
|
119
119
|
if (upuiParams) {
|
|
120
120
|
uni.upuiParams = upuiParams
|
|
121
121
|
let temp = upuiParams()
|
|
122
|
-
temp.httpIns
|
|
123
|
-
|
|
122
|
+
if (temp.httpIns) {
|
|
123
|
+
temp.httpIns(http)
|
|
124
|
+
}
|
|
125
|
+
if (temp.options) {
|
|
126
|
+
setConfig(temp.options)
|
|
127
|
+
}
|
|
124
128
|
}
|
|
125
129
|
|
|
126
130
|
// 同时挂载到uni和Vue.prototype中
|
package/libs/config/config.js
CHANGED
package/libs/config/props.js
CHANGED
|
@@ -203,8 +203,12 @@ function setConfig(configs) {
|
|
|
203
203
|
if (uni && uni.upuiParams) {
|
|
204
204
|
console.log('setting uview-plus')
|
|
205
205
|
let temp = uni.upuiParams()
|
|
206
|
-
temp.httpIns
|
|
207
|
-
|
|
206
|
+
if (temp.httpIns) {
|
|
207
|
+
temp.httpIns(http)
|
|
208
|
+
}
|
|
209
|
+
if (temp.options) {
|
|
210
|
+
setConfig(temp.options)
|
|
211
|
+
}
|
|
208
212
|
}
|
|
209
213
|
|
|
210
214
|
export default props
|
|
@@ -34,7 +34,7 @@ export default class Request {
|
|
|
34
34
|
* @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
|
|
35
35
|
*/
|
|
36
36
|
constructor(arg = {}) {
|
|
37
|
-
console.info('初始化luch-request')
|
|
37
|
+
// console.info('初始化luch-request')
|
|
38
38
|
if (!isPlainObject(arg)) {
|
|
39
39
|
arg = {}
|
|
40
40
|
console.warn('设置全局参数必须接收一个Object')
|