Skip to content

Commit

Permalink
fix no used
Browse files Browse the repository at this point in the history
  • Loading branch information
Vito Han committed Nov 23, 2023
1 parent 4d7d76b commit b5ad7fe
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
2 changes: 0 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM nginx:latest
WORKDIR /app
RUN [ "npm","i" ]
RUN ["npm","run","build"]
COPY build/ /usr/share/nginx/html
EXPOSE 80
ENTRYPOINT ["nginx", "-g", "daemon off;"]
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import UserManage from './pages/UserManage'
import Login from './pages/Login'
import Tools from './pages/Tools'
import { Route, Routes, NavLink, useNavigate } from "react-router-dom"
import { Route, Routes } from "react-router-dom"
import { Layout, theme } from 'antd';
import TopHeader from './component/TopHeader';
import SideMenu from './component/SideMenu';
Expand Down
6 changes: 2 additions & 4 deletions src/component/SideMenu.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import React, { useState, useEffect } from 'react'
import React from 'react'
import { Menu, Layout } from 'antd'
import { NavLink, useNavigate } from 'react-router-dom'
import { useNavigate } from 'react-router-dom'
import {
MenuFoldOutlined,
MenuUnfoldOutlined,
UploadOutlined,
UserOutlined,
VideoCameraOutlined,
Expand Down
2 changes: 1 addition & 1 deletion src/component/TopHeader.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Layout, theme, Avatar, Badge, Dropdown } from 'antd'
import { Layout } from 'antd'
const { Header } = Layout


Expand Down
3 changes: 1 addition & 2 deletions src/pages/Login.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import request from '../util/request'
import Axios from 'axios'
function Login() {
const login = () => {
let payload = {
email: 'admin',
password: '123456'
}
request.get('User').then((res) => {
console.log(res.data)
console.log(res.data, payload)
})

}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/UserManage.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Space, Table, Tag } from 'antd';
import { Table } from 'antd';
import { useEffect, useState } from 'react'
import request from '../util/request';

Expand Down

0 comments on commit b5ad7fe

Please sign in to comment.