mlzboy
mlzboy
  • 发布:2020-08-14 14:10
  • 更新:2020-08-14 14:21
  • 阅读:2608

钉钉小程序使用uni.getStorageInfoSync 报错"TypeError: uni.getStorageInfoSync is not a function"

分类:uni-app

[Vue warn]: Error in onLoad hook (Promise/async): "TypeError: uni.getStorageInfoSync is not a function"

(found in pages/exam/index2.vue)
setTimeout (async)
g.setTimeout @ af-appx.worker.ide.js:2580
console.error @ bridge.js:1
warn @ vendor.js:3275
Vue.config.errorHandler @ vendor.js:8464
globalHandleError @ vendor.js:4536
handleError @ vendor.js:4505
(anonymous) @ vendor.js:4522
Promise.catch (async)
invokeWithErrorHandling @ vendor.js:4522
Vue.__call_hook @ vendor.js:8521
onLoad @ vendor.js:2095
load @ af-appx.worker.ide.js:886
processMessage @ af-appx.worker.ide.js:2256
(anonymous) @ af-appx.worker.ide.js:2262
(anonymous) @ bridge.js:1
document.dispatchEvent @ bridge.js:1
(anonymous) @ VM145:1
WebFrame.(anonymous function) @ VM102 C:\Program Files\小程序开发者工具\resources\electron.asar\renderer\api\web-frame.js:56
electron.ipcRenderer.on @ VM86 C:\Program Files\小程序开发者工具\resources\electron.asar\renderer\web-frame-init.js:36
emit @ VM21 events.js:182
TypeError: uni.getStorageInfoSync is not a function
at _has_key (vendor.js:10386)
at Object.is_vip (vendor.js:10410)
at VueComponent._callee$ (index2.js:644)
at tryCatch (vendor.js:8814)
at Generator.invoke [as _invoke] (vendor.js:9040)
at Generator.prototype.(:7547/anonymous function) [as next] (http://127.0.0.1:8277/index.worker.js?t=1597384971308:12179:25)
at asyncGeneratorStep (index2.js:488)
at _next (index2.js:488)
at index2.js:488
at new Promise (<anonymous>)

2020-08-14 14:10 负责人:无 分享
已邀请:
mlzboy

mlzboy (作者)

https://ding-doc.dingtalk.com/doc#/dev/storage

我找了一下,好像没有这个API,能不能让钉钉补齐一下,不然这个从别的程序生成过来,就卡在这了

该问题目前已经被锁定, 无法添加新回复