refactor: 清理window上冗余的挂载对象

This commit is contained in:
ZiuChen 2022-09-17 19:59:15 +08:00
parent cce8116bb1
commit 07b58e8b80
2 changed files with 2 additions and 5 deletions

View File

@ -254,8 +254,5 @@ window.copy = copy
window.paste = paste window.paste = paste
window.remove = remove window.remove = remove
window.createFile = createFile window.createFile = createFile
window.openFile = utools.shellOpenPath
window.openFileFolder = utools.shellShowItemInFolder
window.getIcon = utools.getFileIcon
window.focus = focus window.focus = focus
window.toTop = toTop window.toTop = toTop

View File

@ -19,8 +19,8 @@ const props = defineProps({
required: true required: true
} }
}) })
const openFile = (path) => window.openFile(path) const openFile = (path) => utools.shellOpenPath(path)
const getIcon = (path) => window.getIcon(path) const getIcon = (path) => utools.getFileIcon(path)
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>