wui-components-v2 1.2.81 → 1.2.82
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/index.ts +3 -1
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
|
|