hx配置插件见图片,App.vue中引用:
const openinstall = uni.requireNativePlugin('openinstall-plugin');
openinstall.init();
console.log("openinstall.init")
openinstall.getInstall(3,
function(result) {
console.log('getInstall : channel=' + result.channelCode + ', data=' + result.bindData);
}
);
运行后报错:
15:07:27.387 [Vue warn]: Error in onLaunch hook: "TypeError: openinstall.init is not a function"
15:07:27.435 (found at App.vue:1)
15:07:27.457 TypeError: openinstall.init is not a function
15:07:27.482 App Show at App.vue:139
自定义基座,删除过,重新打包过,手机上的app logo、版本都是自定义的,确定安装最新的基座了
PS: 以前用的HX 2.6.3,今天突然打包app提示线上版本和打包版本不一致。。。,不要强制升级HX啊啊啊啊