This commit is contained in:
Vanessa 2022-09-27 00:13:11 +08:00
parent 4e5a195290
commit 36c69ef9fc
11 changed files with 19 additions and 30 deletions

View file

@ -337,9 +337,9 @@ export const bazaar = {
const type = target.getAttribute("data-type");
if (type === "open") {
/// #if !BROWSER
const dirName = target.parentElement.parentElement.getAttribute("data-bazaar")
const dirName = target.parentElement.parentElement.getAttribute("data-bazaar");
if (dirName === "icons" || dirName === "themes") {
shell.openPath(path.join(window.siyuan.config.system.confDir, "appearance", dirName, target.parentElement.getAttribute("data-name")))
shell.openPath(path.join(window.siyuan.config.system.confDir, "appearance", dirName, target.parentElement.getAttribute("data-name")));
} else {
shell.openPath(path.join(window.siyuan.config.system.dataDir, dirName, target.parentElement.getAttribute("data-name")));
}