[代码]症状同上 [代码][代码]public loadSubpackage(pName: string): Promise<any> {[代码] [代码] [代码][代码]return[代码] [代码]new[代码] [代码]Promise((resolve, reject) => {[代码] [代码] [代码][代码]let loadTask = wx.loadSubpackage({[代码][代码] [代码][代码]name: pName,[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]resolve();[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]},[代码][代码] [代码][代码]complete: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][代码] [代码][代码]});[代码] [代码] [代码][代码]}[代码]
分包在真机中加载正常,开发者工具中加载失败用工具提交预览,在真机中运行一切正常 但在工具中: const loadTask = Other.wx.loadSubpackage 回调掉到fail函数, 已经测试过N次。 现在在工具中只有不分包跑。
2018-11-25