Commit b61e23db authored by 郝聪敏's avatar 郝聪敏

fix: 返回参数接收方式修改

parent 010378fb
<template> <template>
<cr-image fit="cover" :src="url" /> <cr-image width="" height="" fit="cover" :src="url" />
</template> </template>
<script> <script>
......
...@@ -7,7 +7,11 @@ export default { ...@@ -7,7 +7,11 @@ export default {
this.$notify({ type: "warning", message: "保单不存在" }); this.$notify({ type: "warning", message: "保单不存在" });
return; return;
} }
const url = await getElectronicInsurance({ policySecId }); const { url } = await getElectronicInsurance({ policySecId });
if (!url) {
this.$notify({ type: "danger", message: "保单地址返回异常" });
return;
}
this.$router.push({ this.$router.push({
path: "/policy/virtual-detail", path: "/policy/virtual-detail",
query: { url } query: { url }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment