瀏覽代碼

refactor(about): 移除 ContactUs 组件中的未使用类型定义

- 删除了未使用的 BasicInfo 接口定义
- 删除了未使用的 LocationInfo 接口定义
- 清理了组件中不再需要的类型声明
- 优化了代码结构,移除了冗余类型定义
nahida 2 月之前
父節點
當前提交
e6c4c3e506
共有 1 個文件被更改,包括 1 次插入17 次删除
  1. 1 17
      src/components/about/ContactUs.tsx

+ 1 - 17
src/components/about/ContactUs.tsx

@@ -1,26 +1,10 @@
 'use client'
-import React, { useEffect, useRef, useState } from 'react';
+import React, {useEffect, useRef, useState} from 'react';
 import SubTitle from "@/components/subTitle";
 import Image from "next/image";
 // 引入 ECharts
 import * as echarts from 'echarts';
 
-// 定义类型接口
-interface BasicInfo {
-    qrCodeUrl: string;
-    telephone: string;
-    email: string;
-    address: string;
-}
-
-interface LocationInfo {
-    longitude: number;
-    latitude: number;
-    name: string;
-    marker: string;
-    phone: string;
-}
-
 // 定义需要响应交互的省份白名单(和data中的省份对应)
 const ALLOWED_PROVINCES = ["北京", "上海", "湖南", "四川", "广东"];