This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new a1f9730 fix: Switch Language doesn't work. (#1306)
a1f9730 is described below
commit a1f9730ddb7fc5da1b5fa7b5c0a3562afd9f937a
Author: guoqqqi <[email protected]>
AuthorDate: Fri Jan 15 16:59:07 2021 +0800
fix: Switch Language doesn't work. (#1306)
---
web/src/app.tsx | 2 --
1 file changed, 2 deletions(-)
diff --git a/web/src/app.tsx b/web/src/app.tsx
index 9b75d8d..a152e33 100644
--- a/web/src/app.tsx
+++ b/web/src/app.tsx
@@ -18,7 +18,6 @@ import React from 'react';
import { history } from 'umi';
import type { RequestConfig } from 'umi';
import type { Settings as LayoutSettings } from '@ant-design/pro-layout';
-import moment from 'moment';
import RightContent from '@/components/RightContent';
import Footer from '@/components/Footer';
@@ -32,7 +31,6 @@ export async function getInitialState(): Promise<{
currentUser?: API.CurrentUser;
settings?: LayoutSettings;
}> {
- moment.locale(['en-US', 'zh-CN']);
const token = localStorage.getItem('token');
if (!token) {
history.replace(`/user/login?redirect=${encodeURIComponent(window.location.pathname)}`);