From a8228159b7ab8f2975c37f8a5c58af1a226ef439 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Mon, 26 Dec 2022 17:39:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E5=90=8C=E6=AD=A5=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/core/useApp/useSync.ts | 20 ++++++++++---------- src/renderer/views/Setting/index.vue | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/renderer/core/useApp/useSync.ts b/src/renderer/core/useApp/useSync.ts index 5af8181b..0860021c 100644 --- a/src/renderer/core/useApp/useSync.ts +++ b/src/renderer/core/useApp/useSync.ts @@ -1,5 +1,5 @@ import { markRaw, onBeforeUnmount } from '@common/utils/vueTools' -import { onSyncAction, sendSyncAction } from '@renderer/utils/ipc' +import { onSyncAction } from '@renderer/utils/ipc' import { sync } from '@renderer/store' import { appSetting } from '@renderer/store/setting' @@ -34,14 +34,14 @@ export default () => { return async() => { sync.enable = appSetting['sync.enable'] sync.port = appSetting['sync.port'] - if (appSetting['sync.enable'] && appSetting['sync.port']) { - void sendSyncAction({ - action: 'enable', - data: { - enable: appSetting['sync.enable'], - port: appSetting['sync.port'], - }, - }) - } + // if (appSetting['sync.enable'] && appSetting['sync.port']) { + // void sendSyncAction({ + // action: 'enable', + // data: { + // enable: appSetting['sync.enable'], + // port: appSetting['sync.port'], + // }, + // }) + // } } } diff --git a/src/renderer/views/Setting/index.vue b/src/renderer/views/Setting/index.vue index e9f6fdc6..631c2839 100644 --- a/src/renderer/views/Setting/index.vue +++ b/src/renderer/views/Setting/index.vue @@ -59,7 +59,7 @@ import SettingDesktopLyric from './components/SettingDesktopLyric' import SettingSearch from './components/SettingSearch' import SettingList from './components/SettingList' import SettingDownload from './components/SettingDownload' -import SettingSync from './components/SettingSync' +// import SettingSync from './components/SettingSync' import SettingHotKey from './components/SettingHotKey' import SettingNetwork from './components/SettingNetwork' import SettingOdc from './components/SettingOdc' @@ -78,7 +78,7 @@ export default { SettingSearch, SettingList, SettingDownload, - SettingSync, + // SettingSync, SettingHotKey, SettingNetwork, SettingOdc, @@ -102,7 +102,7 @@ export default { { id: 'SettingSearch', title: t('setting__search') }, { id: 'SettingList', title: t('setting__list') }, { id: 'SettingDownload', title: t('setting__download') }, - { id: 'SettingSync', title: t('setting__sync') }, + // { id: 'SettingSync', title: t('setting__sync') }, { id: 'SettingHotKey', title: t('setting__hot_key') }, { id: 'SettingNetwork', title: t('setting__network') }, { id: 'SettingOdc', title: t('setting__odc') },