罗广辉
2026-05-07 7670b6a93586aa6d95f7aa581b17e2289ed50ba7
feat: 修复传参异常
2 files modified
15 ■■■■■ changed files
src/manifest.json 3 ●●●● patch | view | raw | blame | history
src/subPackages/droneConsole/index.vue 12 ●●●●● patch | view | raw | blame | history
src/manifest.json
@@ -68,8 +68,7 @@
                }
            }
        },
        "nativePlugins" : {
        }
        "nativePlugins" : {}
    },
    /* 快应用特有相关 */
    "quickapp" : {},
src/subPackages/droneConsole/index.vue
@@ -8,12 +8,6 @@
import {getEnvObj, getWebViewUrl} from "@/utils/index.js";
import {useUserStore} from "@/store/index.js";
const queryParams = ref({})
const viewUrl = computed(() => {
  return getWebViewUrl('/DroneConsole', queryParams.value)
})
function onPostMessage(data) {
  if (data.type === 'back'){
    // #ifdef H5
@@ -82,8 +76,12 @@
  })
}
const viewUrl = ref("");
onLoad((options) => {
  queryParams.value = options
  viewUrl.value = getWebViewUrl("/DroneConsole", {
    wayLineJobInfoId: options.wayLineJobInfoId,
    dockSn: options.dockSn,
  });
})