Parcourir la source

fix: 企业详情res.data少一层解包导致无数据渲染

alphah il y a 1 jour
Parent
commit
94fa8cbc8f

+ 1 - 1
frontend/src/views/module_payment/enterprise/components/EnterpriseDetail.vue

@@ -246,7 +246,7 @@ async function fetchDetail() {
   try {
     const res = await EnterpriseAPI.detail(props.outBizNo);
     if (res.data) {
-      detailData.value = res.data;
+      detailData.value = res.data.data || {};
     }
   } catch {
     // 错误已由请求拦截器统一提示