From d51aae8b509667198a35c934256788a8ee548bd9 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong <1040110848@qq.com> Date: Thu, 22 Apr 2021 16:34:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=A5=BD=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 45 +++++-------- src/background.ts | 26 ++++---- src/components/Chat.vue | 37 +++++++++++ src/components/HelloWorld.vue | 122 ---------------------------------- 4 files changed, 68 insertions(+), 162 deletions(-) create mode 100644 src/components/Chat.vue delete mode 100644 src/components/HelloWorld.vue diff --git a/src/App.vue b/src/App.vue index 9b7e84d..5028729 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,31 +1,22 @@ diff --git a/src/background.ts b/src/background.ts index c4ec0a2..13ac1c2 100644 --- a/src/background.ts +++ b/src/background.ts @@ -34,20 +34,20 @@ async function createWindow() { } } -// Quit when all windows are closed. -app.on("window-all-closed", () => { - // On macOS it is common for applications and their menu bar - // to stay active until the user quits explicitly with Cmd + Q - if (process.platform !== "darwin") { - app.quit(); - } -}); +// // Quit when all windows are closed. +// app.on("window-all-closed", () => { +// // On macOS it is common for applications and their menu bar +// // to stay active until the user quits explicitly with Cmd + Q +// if (process.platform !== "darwin") { +// app.quit(); +// } +// }); -app.on("activate", () => { - // On macOS it's common to re-create a window in the app when the - // dock icon is clicked and there are no other windows open. - if (BrowserWindow.getAllWindows().length === 0) createWindow(); -}); +// app.on("activate", () => { +// // On macOS it's common to re-create a window in the app when the +// // dock icon is clicked and there are no other windows open. +// if (BrowserWindow.getAllWindows().length === 0) createWindow(); +// }); // This method will be called when Electron has finished // initialization and is ready to create browser windows. diff --git a/src/components/Chat.vue b/src/components/Chat.vue new file mode 100644 index 0000000..20c9cca --- /dev/null +++ b/src/components/Chat.vue @@ -0,0 +1,37 @@ + + + diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue deleted file mode 100644 index 5b9de5e..0000000 --- a/src/components/HelloWorld.vue +++ /dev/null @@ -1,122 +0,0 @@ - - - - - -