boenfu / vuex-along

:memo: auto save and restore state for vuex
https://boenfu.github.io/vuex-along/
MIT License
259 stars 36 forks source link

你好 大佬 用这个插件挺久了 发现在uniapp中app端无法做到持久化 #46

Closed ghost closed 3 years ago

ghost commented 3 years ago

想问下可以支持下app端嘛 或者我自己的话可以怎么去改让app端适应

ghost commented 3 years ago
  read(): TSchema {
    return uni.getStorageSync(this.source) || {};
  }

  write(data: TSchema) {
    uni.setStorage({
      key: this.source,
      data: data,
    });
  }

这样可以嘛 改了重新发包

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.