VUE3.0 + TS 项目实战 (9)ts storage封装 storage封装 声明一个MyStorage接口 来实现MyStorage接口 使用的时候拿装饰器直接添加到vue组件实例上 函数式 返回一个new storage() 也是可以的