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; font: inherit;
vertical-align: baseline; vertical-align: baseline;
} }
/* HTML5 display-role reset for older browsers */ /* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section { footer, header, hgroup, main, menu, nav, section {
display: block; display: block;
} }
/* HTML5 hidden-attribute fix for newer browsers */ /* HTML5 hidden-attribute fix for newer browsers */
*[hidden] { *[hidden] {
display: none; display: none;
} }
body { body {
line-height: 1; line-height: 1;
} }
menu, ol, ul { menu, ol, ul {
list-style: none; list-style: none;
} }
blockquote, q { blockquote, q {
quotes: none; quotes: none;
} }
blockquote:before, blockquote:after, blockquote:before, blockquote:after,
q:before, q:after { q:before, q:after {
content: ''; content: '';
content: none; content: none;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
@ -170,14 +177,17 @@ a {
} }
.container { .container {
width: 1000px; width: 1000px;
max-width: 80%; max-width: 80%;
margin: auto; margin: auto;
} }
.dashboard { .dashboard {
min-height: 100vh; .page-title {
font-size: 34px;
padding: 20px 0 0;
font-weight: bold;
}
} }
.p-0 { .p-0 {

View File

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

View File

@ -91,7 +91,7 @@ export const DashboardIndex: React.FC = () => {
return ( return (
<div className="dashboard container"> <div className="dashboard container">
<div> <div>
<h1>Dashboard</h1> <h1 className="page-title">Dashboard</h1>
</div> </div>
<Panel title="我的应用" noPadding> <Panel title="我的应用" noPadding>
@ -114,8 +114,7 @@ export const DashboardIndex: React.FC = () => {
))} ))}
</div> </div>
</Panel> </Panel>
<Panel title="事件数据"> <Panel title="事件数据" noPadding>
<div>
<Table columns={eventDataColumns} dataSource={eventDataList} pagination={{ <Table columns={eventDataColumns} dataSource={eventDataList} pagination={{
currentPage: page, currentPage: page,
pageSize: 10, pageSize: 10,
@ -123,7 +122,6 @@ export const DashboardIndex: React.FC = () => {
onPageChange: loadAppEventsAndDataList, onPageChange: loadAppEventsAndDataList,
hideOnSinglePage: true hideOnSinglePage: true
}}/> }}/>
</div>
</Panel> </Panel>
</>} </>}
</div> </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') { 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: { server: {
proxy: { proxy: {
'/api': { '/api': {
target: "http://localhost:3001", target: "http://app-report.wx.wm-app.xyz",
changeOrigin: true, changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api/, ""), // rewrite: (path) => path.replace(/^\/api/, ""),
} }