@netang/quasar 0.2.5 → 0.2.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils/$power.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
 
5
5
  "description": "netang-quasar",
6
6
  "scripts": {
package/utils/$power.js CHANGED
@@ -1237,6 +1237,10 @@ async function request(options) {
1237
1237
  */
1238
1238
  async function onRequest() {
1239
1239
 
1240
+ if ($n_has(o.powerBtn.data, 'formatRequestData')) {
1241
+ o.powerBtn.data.formatRequestData({ requestData })
1242
+ }
1243
+
1240
1244
  // 请求前执行
1241
1245
  const resBefore = await $n_runAsync(o.requestBefore)({
1242
1246
  options: o,