fix(fs): asset url handling

This commit is contained in:
Andelf
2023-03-09 15:17:58 +08:00
parent 31d7c8f836
commit ad564a4d72
5 changed files with 51 additions and 39 deletions

View File

@@ -201,6 +201,7 @@
asset-path (gp-config/remove-asset-protocol src)]
(if (string/blank? asset-path)
(reset! *exist? false)
;; FIXME(andelf): possible bug here
(p/let [exist? (fs/file-or-href-exists? "" asset-path)]
(reset! *exist? (boolean exist?))))
(assoc state ::asset-path asset-path ::asset-file? true))