From 7924768df39cbd5eff9633999528626c0ba6d810 Mon Sep 17 00:00:00 2001 From: iven Date: Sat, 30 May 2026 13:28:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(mp):=20veepoo-measure=20=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=20useRef=20=E5=AF=BC=E5=85=A5=E5=AF=BC=E8=87=B4=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=A9=BA=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit import 语句仅写了 'import React from react', 组件中使用的 useRef 未被解构导入,运行时报 ReferenceError。 --- apps/miniprogram/src/pages/pkg-health/veepoo-measure/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/miniprogram/src/pages/pkg-health/veepoo-measure/index.tsx b/apps/miniprogram/src/pages/pkg-health/veepoo-measure/index.tsx index a5261f6..30458d7 100644 --- a/apps/miniprogram/src/pages/pkg-health/veepoo-measure/index.tsx +++ b/apps/miniprogram/src/pages/pkg-health/veepoo-measure/index.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { useRef } from 'react'; import { View, Text } from '@tarojs/components'; import Taro, { useDidShow } from '@tarojs/taro'; import { useAuthStore } from '@/stores/auth';