完善同步

This commit is contained in:
lyswhut
2023-03-01 18:44:51 +08:00
parent e75ab3a7d7
commit 3399333360
14 changed files with 89 additions and 50 deletions
@@ -35,6 +35,7 @@ export default {
const handleSubmit = () => {
let code = verify()
if (code == '') return
authCode.value = ''
handleClose()
sendSyncAction({
action: 'enable_client',
+1 -1
View File
@@ -6,7 +6,7 @@ import { SYNC_CODE } from '@common/constants'
export default () => {
const handleSyncList = (event: LX.Sync.SyncMainWindowActions) => {
console.log(event)
// console.log(event)
switch (event.action) {
case 'select_mode':
sync.deviceName = event.data
+1 -1
View File
@@ -21,7 +21,7 @@ export const mergeSetting = (newSetting: Partial<LX.AppSetting>) => {
}
export const updateSetting = window.lxData.updateSetting = (setting: Partial<LX.AppSetting>) => {
console.warn(setting)
// console.warn(setting)
void saveSetting(setting)
}
+2 -2
View File
@@ -140,10 +140,10 @@ export default {
scrollIndex = _scrollIndex
isAnimation = _isAnimation
if (isAnimation) restoreScroll(scrollIndex, isAnimation)
console.log('handleRestoreScroll', scrollIndex, isAnimation)
// console.log('handleRestoreScroll', scrollIndex, isAnimation)
}
const onLoadedList = () => {
console.log('restoreScroll', scrollIndex, isAnimation)
// console.log('restoreScroll', scrollIndex, isAnimation)
restoreScroll(scrollIndex, isAnimation)
}