fix: redirect to home after clearing cache

This commit is contained in:
leizhe
2021-11-30 19:01:36 +08:00
parent ef99b38f22
commit 296bbd7b1d

View File

@@ -15,7 +15,8 @@
[clojure.core.async :as async]
[electron.search :as search]
[electron.git :as git]
[electron.plugin :as plugin]))
[electron.plugin :as plugin]
[frontend.handler.route :as route-handler]))
(defmulti handle (fn [_window args] (keyword (first args))))
@@ -187,7 +188,8 @@
(try
(fs-extra/removeSync path)
(catch js/Error e
(js/console.error e)))))))
(js/console.error e)))))
(route-handler/redirect-to-home!)))
(defmethod handle :clearCache [_window _]
(search/close!)