imatrix-ui 2.9.35-dw → 2.9.36-dw

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imatrix-ui",
3
- "version": "2.9.35-dw",
3
+ "version": "2.9.36-dw",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -86,11 +86,23 @@ export default {
86
86
  let src
87
87
  let params = ''
88
88
  if (tag.routeQuery) {
89
+ const orgParams = []
90
+ const orgPath = tag.routeQuery['src']
91
+ if (orgPath && orgPath.indexOf('?') > 0) {
92
+ const orgParamsStr = orgPath.substring(orgPath.indexOf('?') + 1)
93
+ const orgParamsArr = orgParamsStr.split('&')
94
+ orgParamsArr.forEach(item => {
95
+ orgParams.push(item.substring(0, item.indexOf('=')))
96
+ })
97
+ }
89
98
  for (const key in tag.routeQuery) {
90
99
  if (key === 'src') {
91
100
  src = tag.routeQuery[key]
92
101
  } else {
93
- params += key + '=' + tag.routeQuery[key] + '&'
102
+ if (orgParams.indexOf(key) < 0) {
103
+ // 表示原参数中没有该参数,则拼接该参数
104
+ params += key + '=' + tag.routeQuery[key] + '&'
105
+ }
94
106
  }
95
107
  }
96
108
  }