@netang/quasar 0.0.90 → 0.0.91

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 +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "description": "netang-quasar",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/utils/$power.js CHANGED
@@ -931,18 +931,18 @@ async function request(params) {
931
931
 
932
932
  query = formatQuery(query, true)
933
933
 
934
- // 如果不是禁止添加来源页面参数
935
- if ($n_get(btnData, 'noFromPageQuery') !== true) {
936
- // 来源页面是当前路由的完整路径
937
- query.n_from_page = encodeURIComponent($currentRoute.fullPath)
938
- }
939
-
940
934
  // 如果按钮有标题
941
935
  const pageTitle = $n_trimString(o.powerBtn.title)
942
936
  if (pageTitle) {
943
937
  query.n_page_title = pageTitle
944
938
  }
945
939
 
940
+ // 如果不是禁止添加来源页面参数
941
+ if ($n_get(btnData, 'noFromPageQuery') !== true) {
942
+ // 来源页面是当前路由的完整路径
943
+ query.n_from_page = encodeURIComponent($currentRoute.fullPath)
944
+ }
945
+
946
946
  // 请求前执行
947
947
  const resBefore = await $n_runAsync(o.requestBefore)({ params: o, requestData: query })
948
948
  if (resBefore !== void 0) {