wui-components-v2 1.2.81 → 1.2.83
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.
|
@@ -44,18 +44,6 @@ const data = ref<Entities>({
|
|
|
44
44
|
fieldMap: {},
|
|
45
45
|
arrayMap: {},
|
|
46
46
|
})
|
|
47
|
-
const groups = ref<Groups>({
|
|
48
|
-
id: '',
|
|
49
|
-
buttons: [],
|
|
50
|
-
fields: [],
|
|
51
|
-
title: '',
|
|
52
|
-
type: '',
|
|
53
|
-
pointSourceId: '',
|
|
54
|
-
mstrucId: '',
|
|
55
|
-
relationNames: [],
|
|
56
|
-
readOnly: false,
|
|
57
|
-
displayConfig: [],
|
|
58
|
-
})
|
|
59
47
|
const loading = ref(false)
|
|
60
48
|
// 全局事件名:本页新增/编辑关联记录保存后,用于接收刷新信号
|
|
61
49
|
const addEvent = generateHighResolutionID()
|
|
@@ -200,7 +188,7 @@ onUnmounted(() => {
|
|
|
200
188
|
group.primaryColumn || { controlType: '', extControlType: '', sourceId: '', mstrucId: '' }
|
|
201
189
|
"
|
|
202
190
|
:source-id="group.id"
|
|
203
|
-
:item="
|
|
191
|
+
:item="group"
|
|
204
192
|
:code="field.code"
|
|
205
193
|
:data="data"
|
|
206
194
|
:add-event="addEvent"
|
package/package.json
CHANGED
package/utils/index.ts
CHANGED
|
@@ -139,7 +139,9 @@ export function buildServerFileSrc(path: string) {
|
|
|
139
139
|
token ? `@token=${token}` : '',
|
|
140
140
|
programToken ? `@programToken=${programToken}` : '',
|
|
141
141
|
].filter(Boolean).join('&')
|
|
142
|
-
|
|
142
|
+
// 已带 v3/ 前缀的服务端路径直接用;其余是纯对象路径,补 v3/files/ 前缀(对齐 PC 端)
|
|
143
|
+
const target = /^v3\//i.test(clean) ? clean : `v3/files/${clean}`
|
|
144
|
+
const base = `${baseUrl}/${target}`
|
|
143
145
|
return query ? `${base}${clean.includes('?') ? '&' : '?'}${query}` : base
|
|
144
146
|
}
|
|
145
147
|
|