@dataloop-ai/components 0.20.62 → 0.20.63
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
|
@@ -176,9 +176,13 @@ export default defineComponent({
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
try {
|
|
179
|
+
let publicPath = process.env.BASE_URL ?? ''
|
|
180
|
+
if (publicPath.endsWith('/')) {
|
|
181
|
+
publicPath = publicPath.slice(0, -1)
|
|
182
|
+
}
|
|
179
183
|
svgElement.src = svgSource.value
|
|
180
184
|
? `${svgSource.value}/${cleanedIconName.value}.svg`
|
|
181
|
-
:
|
|
185
|
+
: `${publicPath}/icons/assets/${cleanedIconName.value}.svg`
|
|
182
186
|
} catch (e) {
|
|
183
187
|
reject(e)
|
|
184
188
|
}
|