fix(ios): broken asset url

This commit is contained in:
leizhe
2021-12-14 14:12:18 +08:00
parent 1b6509c2f8
commit d5ad9dc371

View File

@@ -1585,10 +1585,14 @@
(util/electron?)
(str "assets://" repo-dir path)
(mobile/is-native-platform?)
(mobile/native-android?)
(mobile/convert-file-src
(str "file://" repo-dir path))
(mobile/native-ios?)
(mobile/convert-file-src
(str repo-dir path))
:else
(let [handle-path (str "handle" repo-dir path)
cached-url (get @*assets-url-cache (keyword handle-path))]