屏蔽同步功能
parent
4594f2fd1f
commit
a8228159b7
|
@ -1,5 +1,5 @@
|
||||||
import { markRaw, onBeforeUnmount } from '@common/utils/vueTools'
|
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 { sync } from '@renderer/store'
|
||||||
import { appSetting } from '@renderer/store/setting'
|
import { appSetting } from '@renderer/store/setting'
|
||||||
|
|
||||||
|
@ -34,14 +34,14 @@ export default () => {
|
||||||
return async() => {
|
return async() => {
|
||||||
sync.enable = appSetting['sync.enable']
|
sync.enable = appSetting['sync.enable']
|
||||||
sync.port = appSetting['sync.port']
|
sync.port = appSetting['sync.port']
|
||||||
if (appSetting['sync.enable'] && appSetting['sync.port']) {
|
// if (appSetting['sync.enable'] && appSetting['sync.port']) {
|
||||||
void sendSyncAction({
|
// void sendSyncAction({
|
||||||
action: 'enable',
|
// action: 'enable',
|
||||||
data: {
|
// data: {
|
||||||
enable: appSetting['sync.enable'],
|
// enable: appSetting['sync.enable'],
|
||||||
port: appSetting['sync.port'],
|
// port: appSetting['sync.port'],
|
||||||
},
|
// },
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ import SettingDesktopLyric from './components/SettingDesktopLyric'
|
||||||
import SettingSearch from './components/SettingSearch'
|
import SettingSearch from './components/SettingSearch'
|
||||||
import SettingList from './components/SettingList'
|
import SettingList from './components/SettingList'
|
||||||
import SettingDownload from './components/SettingDownload'
|
import SettingDownload from './components/SettingDownload'
|
||||||
import SettingSync from './components/SettingSync'
|
// import SettingSync from './components/SettingSync'
|
||||||
import SettingHotKey from './components/SettingHotKey'
|
import SettingHotKey from './components/SettingHotKey'
|
||||||
import SettingNetwork from './components/SettingNetwork'
|
import SettingNetwork from './components/SettingNetwork'
|
||||||
import SettingOdc from './components/SettingOdc'
|
import SettingOdc from './components/SettingOdc'
|
||||||
|
@ -78,7 +78,7 @@ export default {
|
||||||
SettingSearch,
|
SettingSearch,
|
||||||
SettingList,
|
SettingList,
|
||||||
SettingDownload,
|
SettingDownload,
|
||||||
SettingSync,
|
// SettingSync,
|
||||||
SettingHotKey,
|
SettingHotKey,
|
||||||
SettingNetwork,
|
SettingNetwork,
|
||||||
SettingOdc,
|
SettingOdc,
|
||||||
|
@ -102,7 +102,7 @@ export default {
|
||||||
{ id: 'SettingSearch', title: t('setting__search') },
|
{ id: 'SettingSearch', title: t('setting__search') },
|
||||||
{ id: 'SettingList', title: t('setting__list') },
|
{ id: 'SettingList', title: t('setting__list') },
|
||||||
{ id: 'SettingDownload', title: t('setting__download') },
|
{ 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: 'SettingHotKey', title: t('setting__hot_key') },
|
||||||
{ id: 'SettingNetwork', title: t('setting__network') },
|
{ id: 'SettingNetwork', title: t('setting__network') },
|
||||||
{ id: 'SettingOdc', title: t('setting__odc') },
|
{ id: 'SettingOdc', title: t('setting__odc') },
|
||||||
|
|
Loading…
Reference in New Issue