@netang/quasar 0.1.85 → 0.1.86

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.
@@ -120,9 +120,11 @@ export default {
120
120
  })
121
121
 
122
122
  // 更新布局数据
123
- $power.update(function(data) {
124
- data.uploader.push(uploader)
125
- })
123
+ if ($power) {
124
+ $power?.update(function(data) {
125
+ data.uploader.push(uploader)
126
+ })
127
+ }
126
128
 
127
129
  // ==========【监听数据】==============================================================================================
128
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.1.85",
3
+ "version": "0.1.86",
4
4
  "description": "netang-quasar",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/utils/$power.js CHANGED
@@ -1227,10 +1227,13 @@ async function request(options) {
1227
1227
 
1228
1228
  async function nextBefore() {
1229
1229
 
1230
+ // 请求地址
1231
+ const requestUrl = o.powerBtn.data.url
1232
+
1230
1233
  // 请求
1231
1234
  const res = await $n_http({
1232
1235
  // 请求地址
1233
- url: o.powerBtn.data.url,
1236
+ url: requestUrl,
1234
1237
  // 请求数据
1235
1238
  data: requestData,
1236
1239
  // 加载中
@@ -1239,6 +1242,8 @@ async function request(options) {
1239
1242
 
1240
1243
  // 返回结果数据
1241
1244
  const resultData = Object.assign({
1245
+ // 请求地址
1246
+ requestUrl,
1242
1247
  // 参数
1243
1248
  options: o,
1244
1249
  // 请求数据