Skip to content

Commit

Permalink
fix: time select issue (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
xigongdaEricyang authored Jul 21, 2022
1 parent 809705d commit dc01d21
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nebula-dashboard",
"version": "1.1.1",
"version": "1.1.2",
"description": "nebula-dashboard community version",
"author": "vesoft cloud team",
"homepage": "",
Expand Down
6 changes: 6 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import {
Switch,
withRouter,
} from 'react-router-dom';
import dayjs from 'dayjs';
import weekday from "dayjs/plugin/weekday"
import localeData from "dayjs/plugin/localeData"
import { handleTrackEvent, trackEvent } from './utils/stat';
import { INTL_LOCALES } from '@/config';
import './App.less';
Expand All @@ -18,6 +21,9 @@ import { updateQueryStringParameter } from '@/utils';
import AuthorizedRoute from '@/AuthorizedRoute';
import Login from '@/pages/Login';

dayjs.extend(weekday)
dayjs.extend(localeData)

// @ts-ignore
const MainPage = lazy(() => import('@/pages/MainPage/index'));

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"resolveJsonModule": true,
"baseUrl": ".",
"paths": {
"@assets/*": ["app/assets/*"]
"@assets/*": ["app/assets/*"],
"@/*": ["src/*"]
}
}
}

0 comments on commit dc01d21

Please sign in to comment.