bill 1 месяц назад
Родитель
Сommit
4d8067bd79
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/hook/use-expose.ts

+ 1 - 1
src/core/hook/use-expose.ts

@@ -66,7 +66,7 @@ export const useAutoPaste = () => {
       async handler(pos, val, type) {
         const url = await resourceHandler(val, type);
         if (type.includes("svg")) {
-          const style = await getIconStyle(url, 100, 100);
+          const style = await getIconStyle(window.platform.getResource(url), 100, 100);
           drawAPI.addShape(
             "icon",
             { ...style, fill: undefined, stroke: undefined },