diff --git a/src/main/index.js b/src/main/index.js index da96c0b..b482f43 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -150,7 +150,6 @@ async function createLinkWin(data) { // 初始化完成 app.on('ready', () => { process.env.LANG = 'en_US.UTF-8' - process.env['ELECTRON_DISABLE_SANDBOX'] = true; // 设置应用程序用户模型标识符 electronApp.setAppUserModelId('com.electron') diff --git a/src/renderer/index.html b/src/renderer/index.html index 4cee16d..8ee7d0b 100644 --- a/src/renderer/index.html +++ b/src/renderer/index.html @@ -8,7 +8,7 @@ http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:" /> --> - + diff --git a/src/renderer/src/components/file-preview/index.vue b/src/renderer/src/components/file-preview/index.vue index 37fa232..350695b 100644 --- a/src/renderer/src/components/file-preview/index.vue +++ b/src/renderer/src/components/file-preview/index.vue @@ -1,33 +1,43 @@