Q__
Q__
  • 发布:2024-12-05 11:46
  • 更新:2024-12-05 11:52
  • 阅读:174

运行鸿蒙 uni.setStorageSync 本地缓存获取数据异常

分类:鸿蒙Next

在uni-app-runtime": "2.3.11" 版本中能正常获取数据,升级到2.3.15 数据获取异常
如:uni.setStorageSync('test', [{a:1}]) 
期望获取值:[{a:1}]
实际值: {"0":{a:1}}

2024-12-05 11:46 负责人:DCloud_UNI_yuhe 分享
已邀请:
DCloud_UNI_yuhe

DCloud_UNI_yuhe

这个是已经修过了的,你看看是不是没升级成功: https://ask.dcloud.net.cn/question/200673

  • Q__ (作者)

    之前是2.3.9有问题在2.3.11修复了,现在升级到2.3.15又出现了

    2024-12-05 13:37

  • DCloud_UNI_yuhe

    回复 Q__: 是用 2.3.15 测试的,你看一下你的 unpackage 下的产物所使用的版本

    2024-12-05 14:26

  • Q__ (作者)

    回复 DCloud_UNI_yuhe: {

    "modelVersion": "5.0.0",

    "description": "Please describe the basic information.",

    "dependencies": {

    "@dcloudio/uni-app-runtime": "2.3.15",

    "@uni_modules/uni-usercapturescreen": "./uni_modules/uni-usercapturescreen"

    },

    "devDependencies": {

    "@ohos/hypium": "1.0.19",

    "@ohos/hamock": "1.0.0"

    },

    "version": "2.0.1"

    }

    2024-12-05 14:50

要回复问题请先登录注册