mirror of
https://github.com/PlayEdu/backend
synced 2025-06-19 15:26:26 +08:00
Merge branch 'dev' of https://gitee.com/playeduxyz/backend into dev
This commit is contained in:
commit
1e37e7ee1b
@ -1,6 +1,6 @@
|
||||
export * from "./footer";
|
||||
export * from "./header";
|
||||
export * from "./leftMenu";
|
||||
export * from "./left-menu";
|
||||
export * from "./upload-image-button";
|
||||
export * from "./treeDepartment";
|
||||
export * from "./back-bar";
|
@ -21,15 +21,13 @@ function getItem(label: any, key: any, icon: any, children: any, type: any) {
|
||||
}
|
||||
const items = [
|
||||
getItem("首页概览", "/", <SettingOutlined />, null, null),
|
||||
getItem("网校装修", "/decoration", <SettingOutlined />, null, null),
|
||||
getItem(
|
||||
"课程内容",
|
||||
"资源管理",
|
||||
"3",
|
||||
<MailOutlined />,
|
||||
[
|
||||
getItem("视频", "/vod", null, null, null),
|
||||
getItem("文章", "/topic", null, null, null),
|
||||
getItem("试卷", "/paper", null, null, null),
|
||||
getItem("视频", "/videos", null, null, null),
|
||||
getItem("图片", "/images", null, null, null),
|
||||
],
|
||||
null
|
||||
),
|
||||
@ -47,7 +45,6 @@ const items = [
|
||||
[getItem("部门", "/department", null, null, null)],
|
||||
null
|
||||
),
|
||||
getItem("证书管理", "5", <SettingOutlined />, [], null),
|
||||
getItem(
|
||||
"系统设置",
|
||||
"6",
|
@ -161,6 +161,7 @@ export const DepartmentPage: React.FC = () => {
|
||||
</div>
|
||||
<div className="float-left">
|
||||
<Table
|
||||
pagination={false}
|
||||
key={tableKey}
|
||||
columns={columns}
|
||||
dataSource={list}
|
||||
|
@ -0,0 +1,4 @@
|
||||
.main {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
@ -1,11 +1,27 @@
|
||||
import { Button, Result } from "antd";
|
||||
import React from "react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import styles from "./index.module.less";
|
||||
|
||||
export const ErrorPage: React.FC<any> = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
<div id="error-page">
|
||||
<h1>Oops!</h1>
|
||||
<p>路由不存在</p>
|
||||
</div>
|
||||
<Result
|
||||
status="404"
|
||||
title="404"
|
||||
subTitle="您访问的页面不存在"
|
||||
className={styles["main"]}
|
||||
extra={
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
navigate("/");
|
||||
}}
|
||||
>
|
||||
返回首页
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
@ -17,11 +17,11 @@ export function dateFormat(dateStr: string) {
|
||||
}
|
||||
|
||||
export const generateUUID = (): string => {
|
||||
var guid = "";
|
||||
for (var i = 1; i <= 32; i++) {
|
||||
var n = Math.floor(Math.random() * 16.0).toString(16);
|
||||
let guid = "";
|
||||
for (let i = 1; i <= 32; i++) {
|
||||
let n = Math.floor(Math.random() * 16.0).toString(16);
|
||||
guid += n;
|
||||
if (i == 8 || i == 12 || i == 16 || i == 20) guid += "-";
|
||||
if (i === 8 || i === 12 || i === 16 || i === 20) guid += "-";
|
||||
}
|
||||
return guid;
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user