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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils/index.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wui-components-v2",
3
- "version": "1.2.81",
3
+ "version": "1.2.82",
4
4
  "description": "wui 组件库",
5
5
  "author": "wgxshh",
6
6
  "license": "MIT",
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
- const base = `${baseUrl}/${clean}`
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