完善同步
This commit is contained in:
@@ -35,6 +35,7 @@ export default {
|
||||
const handleSubmit = () => {
|
||||
let code = verify()
|
||||
if (code == '') return
|
||||
authCode.value = ''
|
||||
handleClose()
|
||||
sendSyncAction({
|
||||
action: 'enable_client',
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user