From 07b58e8b80cb9be0609fc3969400de882cbfefca Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Sat, 17 Sep 2022 19:59:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B8=85=E7=90=86window=E4=B8=8A?= =?UTF-8?q?=E5=86=97=E4=BD=99=E7=9A=84=E6=8C=82=E8=BD=BD=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/preload.js | 3 --- src/cpns/FileList.vue | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/public/preload.js b/public/preload.js index bf4d826..e8ad4ba 100644 --- a/public/preload.js +++ b/public/preload.js @@ -254,8 +254,5 @@ window.copy = copy window.paste = paste window.remove = remove window.createFile = createFile -window.openFile = utools.shellOpenPath -window.openFileFolder = utools.shellShowItemInFolder -window.getIcon = utools.getFileIcon window.focus = focus window.toTop = toTop diff --git a/src/cpns/FileList.vue b/src/cpns/FileList.vue index d04b728..5816fb0 100644 --- a/src/cpns/FileList.vue +++ b/src/cpns/FileList.vue @@ -19,8 +19,8 @@ const props = defineProps({ required: true } }) -const openFile = (path) => window.openFile(path) -const getIcon = (path) => window.getIcon(path) +const openFile = (path) => utools.shellOpenPath(path) +const getIcon = (path) => utools.getFileIcon(path)