|
@@ -47,6 +47,16 @@ SonarComRes.find().resJson["mp4_qv"] = new URL("./assets/mp4/qv.mp4", import.met
|
|
|
SonarComRes.find().resJson["mp4_demo"] = new URL("./assets/mp4/demo.mp4", import.meta.url).href;
|
|
|
|
|
|
|
|
|
+const props = defineProps({
|
|
|
+ // 重置流程到第一个流程
|
|
|
+ processInitRestTime : {
|
|
|
+ type: String,
|
|
|
+ default : function() {
|
|
|
+ return "0";
|
|
|
+ }
|
|
|
+ },
|
|
|
+});
|
|
|
+
|
|
|
|
|
|
// 定义发射给父组件的方法
|
|
|
const emits = defineEmits([
|
|
@@ -203,6 +213,22 @@ const SonarProcessEventStoreEvent = (name) => {
|
|
|
|
|
|
}
|
|
|
|
|
|
+watch(
|
|
|
+ () => props.processInitRestTime,
|
|
|
+ (newVal, oldVal) => {
|
|
|
+
|
|
|
+ // console.log(
|
|
|
+ // "是否触发重置流程的逻辑 props.processInitRestTime ===>",
|
|
|
+ // props.processInitRestTime
|
|
|
+ // );
|
|
|
+
|
|
|
+ if (SonarMyThreeWorldStore().loadSuccess == true) {
|
|
|
+ ProcessInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+);
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<template>
|