fixed dayjs 编译错误
This commit is contained in:
parent
0d80435461
commit
eab61449ac
@ -23,29 +23,36 @@ time, mark, audio, video {
|
||||
font: inherit;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/* HTML5 display-role reset for older browsers */
|
||||
article, aside, details, figcaption, figure,
|
||||
footer, header, hgroup, main, menu, nav, section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* HTML5 hidden-attribute fix for newer browsers */
|
||||
*[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
menu, ol, ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
blockquote, q {
|
||||
quotes: none;
|
||||
}
|
||||
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
@ -170,14 +177,17 @@ a {
|
||||
}
|
||||
|
||||
.container {
|
||||
|
||||
width: 1000px;
|
||||
max-width: 80%;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.dashboard {
|
||||
min-height: 100vh;
|
||||
.page-title {
|
||||
font-size: 34px;
|
||||
padding: 20px 0 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.p-0 {
|
||||
|
@ -41,7 +41,6 @@ const RouteView = () => {
|
||||
}, [userinfo])
|
||||
return (
|
||||
<div className="page-body-content">
|
||||
<h1>{loc.pathname}</h1>
|
||||
<AppRoutes></AppRoutes>
|
||||
</div>)
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ export const DashboardIndex: React.FC = () => {
|
||||
return (
|
||||
<div className="dashboard container">
|
||||
<div>
|
||||
<h1>Dashboard</h1>
|
||||
<h1 className="page-title">Dashboard</h1>
|
||||
</div>
|
||||
|
||||
<Panel title="我的应用" noPadding>
|
||||
@ -114,16 +114,14 @@ export const DashboardIndex: React.FC = () => {
|
||||
))}
|
||||
</div>
|
||||
</Panel>
|
||||
<Panel title="事件数据">
|
||||
<div>
|
||||
<Table columns={eventDataColumns} dataSource={eventDataList} pagination={{
|
||||
currentPage: page,
|
||||
pageSize: 10,
|
||||
total: dataTotal,
|
||||
onPageChange: loadAppEventsAndDataList,
|
||||
hideOnSinglePage: true
|
||||
}}/>
|
||||
</div>
|
||||
<Panel title="事件数据" noPadding>
|
||||
<Table columns={eventDataColumns} dataSource={eventDataList} pagination={{
|
||||
currentPage: page,
|
||||
pageSize: 10,
|
||||
total: dataTotal,
|
||||
onPageChange: loadAppEventsAndDataList,
|
||||
hideOnSinglePage: true
|
||||
}}/>
|
||||
</Panel>
|
||||
</>}
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as dayjs from "dayjs";
|
||||
import dayjs from "dayjs";
|
||||
|
||||
|
||||
export function formatDate(time?: string | number | Date | dayjs.Dayjs | null, format = 'YYYY-MM-DD HH:mm:ss') {
|
||||
|
@ -37,7 +37,7 @@ export default defineConfig(({mode}) => {
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: "http://localhost:3001",
|
||||
target: "http://app-report.wx.wm-app.xyz",
|
||||
changeOrigin: true,
|
||||
// rewrite: (path) => path.replace(/^\/api/, ""),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user