@netang/quasar 0.1.19 → 0.1.20
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/package.json +1 -1
- package/utils/$power.js +10 -2
package/package.json
CHANGED
package/utils/$power.js
CHANGED
|
@@ -334,6 +334,8 @@ function create(options) {
|
|
|
334
334
|
|
|
335
335
|
// 权限请求
|
|
336
336
|
await request({
|
|
337
|
+
// power
|
|
338
|
+
$power: data,
|
|
337
339
|
// 按钮数据
|
|
338
340
|
powerBtn,
|
|
339
341
|
// 权限路由参数
|
|
@@ -941,7 +943,10 @@ async function request(options) {
|
|
|
941
943
|
}
|
|
942
944
|
|
|
943
945
|
// 请求前执行
|
|
944
|
-
const resBefore = await $n_runAsync(o.requestBefore)({
|
|
946
|
+
const resBefore = await $n_runAsync(o.requestBefore)({
|
|
947
|
+
options: o,
|
|
948
|
+
requestData: query,
|
|
949
|
+
})
|
|
945
950
|
if (resBefore !== void 0) {
|
|
946
951
|
if (resBefore === false) {
|
|
947
952
|
return
|
|
@@ -1049,7 +1054,10 @@ async function request(options) {
|
|
|
1049
1054
|
async function onRequest() {
|
|
1050
1055
|
|
|
1051
1056
|
// 请求前执行
|
|
1052
|
-
const resBefore = await $n_runAsync(o.requestBefore)({
|
|
1057
|
+
const resBefore = await $n_runAsync(o.requestBefore)({
|
|
1058
|
+
options: o,
|
|
1059
|
+
requestData,
|
|
1060
|
+
})
|
|
1053
1061
|
if (resBefore !== void 0) {
|
|
1054
1062
|
if (resBefore === false) {
|
|
1055
1063
|
return
|