@netang/quasar 0.0.87 → 0.0.88

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.
@@ -65,11 +65,11 @@
65
65
  <div class="col-xs-12 col-sm-6 col-md-3">
66
66
  <q-select
67
67
  class="n-field-fieldset"
68
- label="是否增加来源页面参数"
69
- v-model="formData.addFromPageQuery"
68
+ label="来源页面参数"
69
+ v-model="formData.noFromPageQuery"
70
70
  :options="[
71
- { label: '', value: false },
72
- { label: '', value: true },
71
+ { label: '自动添加', value: false },
72
+ { label: '禁止添加', value: true },
73
73
  ]"
74
74
  map-options
75
75
  emit-value
@@ -450,8 +450,8 @@ export default {
450
450
  selection: '',
451
451
  // 显示类型, 可选 single / multiple / 空(默认显示)
452
452
  show: '',
453
- // 是否增加来源页面参数
454
- addFromPageQuery: false,
453
+ // 禁止添加来源页面参数
454
+ noFromPageQuery: false,
455
455
  // 页面 ID (跳转页面 / 重定向 URL)
456
456
  toPage: '',
457
457
  // 是否固定列
@@ -735,9 +735,9 @@ export default {
735
735
  }
736
736
  }
737
737
 
738
- // 如果增加来源页面参数
739
- if (data.addFromPageQuery) {
740
- obj.addFromPageQuery = true
738
+ // 如果禁止添加来源页面参数
739
+ if (data.noFromPageQuery) {
740
+ obj.noFromPageQuery = true
741
741
  }
742
742
 
743
743
  // 否则为其他
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.0.87",
3
+ "version": "0.0.88",
4
4
  "description": "netang-quasar",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/utils/$power.js CHANGED
@@ -928,8 +928,8 @@ async function request(params) {
928
928
 
929
929
  query = formatQuery(query, true)
930
930
 
931
- // 如果有增加来源页面参数
932
- if ($n_get(o.data, 'addFromPageQuery') === true) {
931
+ // 如果不是禁止添加来源页面参数
932
+ if ($n_get(o.data, 'noFromPageQuery') !== true) {
933
933
  // 来源页面是当前路由的完整路径
934
934
  query.n_from_page = encodeURIComponent($currentRoute.fullPath)
935
935
  }