屏蔽同步功能

This commit is contained in:
lyswhut
2022-12-26 17:39:27 +08:00
parent 4594f2fd1f
commit a8228159b7
2 changed files with 13 additions and 13 deletions
+10 -10
View File
@@ -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'],
// },
// })
// }
}
}