fixed dayjs 编译错误

This commit is contained in:
LittleBoy 2023-08-23 15:10:46 +08:00
parent 0d80435461
commit eab61449ac
5 changed files with 23 additions and 16 deletions

View File

@ -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 {

View File

@ -41,7 +41,6 @@ const RouteView = () => {
}, [userinfo])
return (
<div className="page-body-content">
<h1>{loc.pathname}</h1>
<AppRoutes></AppRoutes>
</div>)
}

View File

@ -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>

View File

@ -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') {

View File

@ -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/, ""),
}