Skip to content

Commit

Permalink
Merge pull request #55 from micro-in-cn/feature/dashboard
Browse files Browse the repository at this point in the history
Feature/dashboard
  • Loading branch information
Allenxuxu authored Jul 22, 2020
2 parents d48ff55 + ff6e67f commit 2fa967f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dashboard/src/App.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/locales/en_us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 2fa967f

Please sign in to comment.