miniProgram callWxMethod 失败?
具体如代码所示 :
const automator = require('miniprogram-automator');
class TEEE {
async start() {
let miniProgram = await automator.launch({
cliPath: 'D:/Program Files (x86)/Tencent/微信web开发者工具/cli.bat',
projectPath: './dist/'
});
try {
const fsm = await miniProgram.callWxMethod('getFileSystemManager', {});
console.log(fsm);
} catch (e) {
console.log(e);
}
}
}
const a = new TEEE();
a.start();
这个调用, fsm 一直不会返回东西也没有响应。