|
@@ -116,6 +116,7 @@ const select_ohos = () => {
|
|
methodName: "selectFile",
|
|
methodName: "selectFile",
|
|
apiUrlPath: "/api/v1/process/media/add", //上传完成后调的接口 不包含baseurl
|
|
apiUrlPath: "/api/v1/process/media/add", //上传完成后调的接口 不包含baseurl
|
|
method: "post",
|
|
method: "post",
|
|
|
|
+ messageKey: "refreshView",
|
|
};
|
|
};
|
|
|
|
|
|
if (window.openHarmonyBridge && window.openHarmonyBridge.selectFile) {
|
|
if (window.openHarmonyBridge && window.openHarmonyBridge.selectFile) {
|
|
@@ -132,11 +133,19 @@ const camera_ohos = () => {
|
|
apiUrlPath: "/api/v1/process/media/add", //上传完成后调的接口 不包含baseurl
|
|
apiUrlPath: "/api/v1/process/media/add", //上传完成后调的接口 不包含baseurl
|
|
method: "post",
|
|
method: "post",
|
|
methodName: "startCamera",
|
|
methodName: "startCamera",
|
|
|
|
+ messageKey: "refreshView",
|
|
};
|
|
};
|
|
if (window.openHarmonyBridge && window.openHarmonyBridge.startCamera) {
|
|
if (window.openHarmonyBridge && window.openHarmonyBridge.startCamera) {
|
|
window.openHarmonyBridge.startCamera(JSON.stringify(p));
|
|
window.openHarmonyBridge.startCamera(JSON.stringify(p));
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+window.addEventListener("message", (event) => {
|
|
|
|
+ const data = JSON.parse(event.data);
|
|
|
|
+ if (data.fullUrl && data.messageKey && data.messageKey === "refreshView") {
|
|
|
|
+ getListData();
|
|
|
|
+ }
|
|
|
|
+});
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|