浏览代码

fix hidden files removing failure on mobile

llcc 3 年之前
父节点
当前提交
d66ab6aa82
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/frontend/handler/repo.cljs

+ 1 - 1
src/main/frontend/handler/repo.cljs

@@ -295,7 +295,7 @@
                      (common-handler/read-config content)))
         relate-path-fn (fn [m k]
                          (some-> (get m k)
-                                 (string/replace (str (config/get-local-dir repo-url) "/") "")))
+                                 (string/replace (js/decodeURI (config/get-local-dir repo-url)) "")))
         nfs-files (common-handler/remove-hidden-files nfs-files config #(relate-path-fn % :file/path))
         diffs (common-handler/remove-hidden-files diffs config #(relate-path-fn % :path))
         load-contents (fn [files option]