为了视频可以看远程我电脑修改的问题

master
赵太阳 2026-04-06 19:19:05 +08:00
parent 84c17f60d7
commit 47db89eb73
3 changed files with 18 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name" : "海驰24",
"appid" : "__UNI__7302921",
"appid" : "__UNI__F8B45C3",
"description" : "111",
"versionName" : "1.2.6",
"versionCode" : 106,
@ -62,6 +62,12 @@
"parameters" : {}
}
}
},
"optimization" : {
"subPackages" : true,
"treeShaking" : {
"enable" : false
}
}
},
"quickapp" : {},

0
nativeplugins/ry-ipc-video/package.json Normal file → Executable file
View File

View File

@ -142,7 +142,17 @@
// 在 nvue 中调用组件的方法,有时可能需要通过 evalJS但绝大多数情况可以直接调
if (typeof this.$refs.ipcVideo.start === 'function') {
this.$refs.ipcVideo.start();
try{
this.$refs.ipcVideo.start();
}
catch(err){
console.error("this.$refs.ipcVideo.start时发生前端异常:", err);
uni.showModal({
title: '前端回调解析异常',
content: err.toString(),
showCancel: false
});
}
} else {
console.error('start 方法不存在,可能插件注册失败或版本未生效');
uni.showToast({ title: '插件方法未找到', icon: 'none' });