Merge branch 'dev' into master-fetch-dev

This commit is contained in:
奔跑的面条
2022-11-19 20:27:10 +08:00
12 changed files with 168 additions and 29 deletions
@@ -21,6 +21,11 @@ const useSyncUpdateHandle = () => {
// 开启侦听
const use = () => {
// // 1、定时同步数据
// timer = setInterval(() => {
// // 窗口激活并且处于工作台
// document.hasFocus() && syncData()
// }, editToJsonInterval)
// // 1、定时同步数据
// timer = setInterval(() => {
// // 窗口激活并且处于工作台
@@ -35,6 +40,7 @@ const useSyncUpdateHandle = () => {
// 关闭侦听
const unUse = () => {
// clearInterval(timer)
// clearInterval(timer)
removeEventListener(SavePageEnum.JSON, updateFn)
removeEventListener('blur', syncData)