From d45b6799b6e91b894349d716e4366c5e8016841b Mon Sep 17 00:00:00 2001 From: 56 Date: Wed, 22 Jul 2020 23:39:56 +0800 Subject: [PATCH 1/2] fix: history -> hash --- dashboard/src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/src/App.tsx b/dashboard/src/App.tsx index a781a7b..6035599 100644 --- a/dashboard/src/App.tsx +++ b/dashboard/src/App.tsx @@ -1,7 +1,7 @@ import React, { Suspense, useEffect, useMemo, useState } from 'react'; import { Redirect, Route, Router, Switch } from 'react-router-dom'; import { ConfigProvider } from 'antd'; -import { createBrowserHistory } from 'history'; +import { createHashHistory } from 'history'; import { useTranslation } from 'react-i18next'; import AppLayout from '@src/AppLayout'; @@ -10,7 +10,7 @@ import i18n, { antLocales } from '@src/i18n'; import { getMenus, getRoutes } from '@src/pages'; import { getLanguage, parseSearch } from '@src/tools'; -const history = createBrowserHistory({ basename: process.env.NODE_ENV === 'production' ? '/admin/ui' : '/' }); +const history = createHashHistory(); const getLang = (search: string) => { const { lang } = parseSearch(search); return getLanguage(lang); From ff6e67f72bfb191582b1a0b519ecdbecb54fdeda Mon Sep 17 00:00:00 2001 From: 56 Date: Wed, 22 Jul 2020 23:41:11 +0800 Subject: [PATCH 2/2] fix: Upper --- dashboard/src/locales/en_us.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/locales/en_us.ts b/dashboard/src/locales/en_us.ts index c927e21..d337992 100644 --- a/dashboard/src/locales/en_us.ts +++ b/dashboard/src/locales/en_us.ts @@ -39,7 +39,7 @@ const locale: Locale = { 'table.columns.desc': 'Description', 'table.columns.status': 'Status', 'table.columns.createdAt': 'CreatedAt', - 'table.columns.updatedAt': 'updatedAt', + 'table.columns.updatedAt': 'UpdatedAt', 'table.columns.control': 'Control', 'table.columns.control.view': 'View', 'table.columns.control.history': 'History',