@dataloop-ai/components 0.20.60 → 0.20.61-cdn-fix.1
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,10 @@ export default defineComponent({
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
try {
|
|
179
|
+
const publicPath = process.env.BASE_URL ?? ''
|
|
179
180
|
svgElement.src = svgSource.value
|
|
180
181
|
? `${svgSource.value}/${cleanedIconName.value}.svg`
|
|
181
|
-
:
|
|
182
|
+
: `${publicPath}/icons/assets/${cleanedIconName.value}.svg`
|
|
182
183
|
} catch (e) {
|
|
183
184
|
reject(e)
|
|
184
185
|
}
|