Skip to content

Commit

Permalink
Merge pull request #54 from micro-in-cn/feature/dashboard
Browse files Browse the repository at this point in the history
fix: History mode
  • Loading branch information
Allenxuxu authored Jul 22, 2020
2 parents d2eb57b + 49a543d commit d48ff55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: '/' });
const history = createBrowserHistory({ basename: process.env.NODE_ENV === 'production' ? '/admin/ui' : '/' });
const getLang = (search: string) => {
const { lang } = parseSearch(search);
return getLanguage(lang);
Expand Down

0 comments on commit d48ff55

Please sign in to comment.