Explorar o código

feat: qrUrl 注入

lanceJiang hai 10 meses
pai
achega
7e5b2d0d24
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/views/approve/components/printer.vue

+ 4 - 1
src/views/approve/components/printer.vue

@@ -80,6 +80,9 @@ const submitForm = () => {
 const closeDialog = () => {
 	$myEmit('update:modelValue', false)
 }
+const qrUrl = computed(() => {
+	return `${location.origin}/#/approve/detail?id=${props.currentTaskRow?.instanceId}`
+})
 </script>
 
 <template>
@@ -99,7 +102,7 @@ const closeDialog = () => {
 
 				<div>
 					<VueQrcode
-						value="www.baidu.com"
+						:value="qrUrl"
 						:options="{
 							width: 90,
 							margin: 0