const func1 = async() => { let miniProgram miniProgram = await automator.launch({ cliPath, projectPath }) await miniProgram.callWxMethod('setStorage', { key: 'sec', data: 'mysecret' }); const sec = await miniProgram.callWxMethod('getStorageSync', 'sec'); console.log(`func1-sec after set: ${sec}`); await miniProgram.close();} |
执行上述代码,重新启动开发者工具后,发现sec字段不存在

提供下工具的版本号和能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
https://developers.weixin.qq.com/s/F4fxfmmM7xch
手动执行justtest.js