diff --git a/src/pages/classInfo/index.tsx b/src/pages/classInfo/index.tsx index 062aa6c..39022e6 100644 --- a/src/pages/classInfo/index.tsx +++ b/src/pages/classInfo/index.tsx @@ -3,6 +3,7 @@ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable import/first */ import { Image, Text, View } from '@tarojs/components'; + import Taro, { useDidShow } from '@tarojs/taro'; import { useCallback, useEffect, useMemo, useState } from 'react'; import { AtIcon } from 'taro-ui'; diff --git a/src/pages/main/index.tsx b/src/pages/main/index.tsx index 439197f..217c41d 100644 --- a/src/pages/main/index.tsx +++ b/src/pages/main/index.tsx @@ -1,6 +1,7 @@ /* eslint-disable react-hooks/exhaustive-deps */ /* eslint-disable import/first */ import { Image, ScrollView, Text, View } from '@tarojs/components'; + import Taro, { useDidShow } from '@tarojs/taro'; import { useCallback, useEffect, useMemo, useState } from 'react'; @@ -90,7 +91,6 @@ export default function Index() { const res = (await postBool('/checkStatus', { name: 'kestack', })) as StatusResponse; - setTest(res.data.status); } catch (error) { console.error('Error fetching status:', error);