|
|
@ -9,7 +9,11 @@ import ServerStorage from './storage/ServerStorage.js'; |
|
|
* 协调各种存储方式,处理冲突合并 |
|
|
* 协调各种存储方式,处理冲突合并 |
|
|
*/ |
|
|
*/ |
|
|
class AutoSaveManager { |
|
|
class AutoSaveManager { |
|
|
constructor(key, serverOptions = {}) { |
|
|
|
|
|
|
|
|
constructor(key, serverOptions = { |
|
|
|
|
|
endpoint:process.env.VUE_APP_BASE_API, |
|
|
|
|
|
syncEndpoint:process.env.VUE_APP_BASE_API, |
|
|
|
|
|
historyEndpoint:process.env.VUE_APP_BASE_API, |
|
|
|
|
|
}) { |
|
|
this.key = key; |
|
|
this.key = key; |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
|