From 76b340c6a8b2037f93b203ea6bd4b86e6875fc93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Wed, 22 May 2019 00:47:43 +0800 Subject: [PATCH] fix ts error --- AccountCenter/src/data.d.ts | 18 +++++++++--------- AccountSettings/src/data.d.ts | 28 ++++++++++------------------ Exception403/src/index.tsx | 4 +--- 3 files changed, 20 insertions(+), 30 deletions(-) diff --git a/AccountCenter/src/data.d.ts b/AccountCenter/src/data.d.ts index 792f502e..e1af4bb7 100644 --- a/AccountCenter/src/data.d.ts +++ b/AccountCenter/src/data.d.ts @@ -1,24 +1,24 @@ -export interface itag { +export interface ITag { key: string; label: string; } -export interface province { +export interface IProvince { label: string; key: string; } -export interface city { +export interface ICity { label: string; key: string; } -export interface geographic { - province: Province; - city: City; +export interface IGeographic { + province: IProvince; + city: ICity; } -export interface notice { +export interface INotice { id: string; title: string; logo: string; @@ -33,7 +33,7 @@ export interface currentuser { name: string; avatar: string; userid: string; - notice: Notice[]; + notice: INotice[]; email: string; signature: string; title: string; @@ -42,7 +42,7 @@ export interface currentuser { notifyCount: number; unreadCount: number; country: string; - geographic: Geographic; + geographic: IGeographic; address: string; phone: string; } diff --git a/AccountSettings/src/data.d.ts b/AccountSettings/src/data.d.ts index 04866919..e1af4bb7 100644 --- a/AccountSettings/src/data.d.ts +++ b/AccountSettings/src/data.d.ts @@ -1,32 +1,24 @@ -export interface itag { +export interface ITag { key: string; label: string; } -export interface province { +export interface IProvince { label: string; key: string; } -export interface city { +export interface ICity { label: string; key: string; } -export interface geographic { - province: Province; - city: City; +export interface IGeographic { + province: IProvince; + city: ICity; } -export interface provincedata { - name: string; - id: string; -} -export interface citydata { - province: string; - name: string; - id: string; -} -export interface notice { + +export interface INotice { id: string; title: string; logo: string; @@ -41,7 +33,7 @@ export interface currentuser { name: string; avatar: string; userid: string; - notice: Notice[]; + notice: INotice[]; email: string; signature: string; title: string; @@ -50,7 +42,7 @@ export interface currentuser { notifyCount: number; unreadCount: number; country: string; - geographic: Geographic; + geographic: IGeographic; address: string; phone: string; } diff --git a/Exception403/src/index.tsx b/Exception403/src/index.tsx index 56371b23..bba87ac1 100644 --- a/Exception403/src/index.tsx +++ b/Exception403/src/index.tsx @@ -3,7 +3,7 @@ import { formatMessage } from 'umi-plugin-react/locale'; import Link from 'umi/link'; import Exception from './components/Exception'; -const PAGE_NAME_UPPER_CAMEL_CASE: React.SFC = () => ( +export default () => ( ( backText={formatMessage({ id: 'BLOCK_NAME.exception.back' })} /> ); - -export default PAGE_NAME_UPPER_CAMEL_CASE; -- GitLab