From 680955d6792013b53679c7c9ffebebf330fd9397 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Tue, 9 Apr 2024 10:51:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=A8=A1=E6=9D=BF=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/financialsector/FinanceHome.vue | 5 ++--- .../financialsector/Financialse/FinancialWarehousing.vue | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/financialsector/FinanceHome.vue b/src/views/financialsector/FinanceHome.vue index d1b255b3..35e0b12a 100644 --- a/src/views/financialsector/FinanceHome.vue +++ b/src/views/financialsector/FinanceHome.vue @@ -125,10 +125,9 @@ const removeTag = value => { } }; -// 提供数据的函数 +// 给子页面传递数据 const provideData = () => { - console.log(`父组件的数据是:${11111}`); - templateInfo.value = { name: '参数', data: 11111 }; + templateInfo.value = form.value; }; diff --git a/src/views/financialsector/Financialse/FinancialWarehousing.vue b/src/views/financialsector/Financialse/FinancialWarehousing.vue index 5ce0e511..f7f08fd5 100644 --- a/src/views/financialsector/Financialse/FinancialWarehousing.vue +++ b/src/views/financialsector/Financialse/FinancialWarehousing.vue @@ -441,7 +441,8 @@ onLoad() // 新增 const Submit=()=>{ console.log(form.value,'表单'); - emit('request-data'); + emit('request-data');//通知父页面传递数据 + console.log(props);//读取父页面传递的参数 }