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 CHANGED
@@ -1,4 +1,4 @@
1
- ## 3.4.0(2025-03-08)
1
+ ## 3.4.1(2025-03-08)
2
2
  feat: 新机制确保setConfig与http在nvue等环境下生效
3
3
 
4
4
  ## 3.3.74(2025-03-06)
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(http)
123
- setConfig(temp.options)
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中
@@ -1,5 +1,3 @@
1
- import props from './props.js'
2
- import index from '../function/index.js'
3
1
  const version = '3'
4
2
 
5
3
  // 开发环境才提示,生产环境不会提示
@@ -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(http)
207
- setConfig(temp.options)
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')
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
5
- "version": "3.4.0",
5
+ "version": "3.4.1",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",