This commit is contained in:
huzhengkao 2025-05-20 16:09:20 +08:00
parent e40b3f32bc
commit 8b2680884e
4 changed files with 20 additions and 1090 deletions

View File

@ -7,7 +7,7 @@
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="/favicon.ico">
<title>若依管理系统</title>
<title>官渡区森林防火监测预警管理平台</title>
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
<style>
html,

View File

@ -2,12 +2,6 @@ import request from '@/utils/request'
// 登录方法
export function login(username, password, code, uuid) {
const data = {
username,
password,
code,
uuid
}
return request({
url: '/auth/login',
headers: {
@ -15,7 +9,7 @@ export function login(username, password, code, uuid) {
repeatSubmit: false
},
method: 'post',
data: data
data: { username, password, code, uuid }
})
}
@ -31,6 +25,14 @@ export function register(data) {
})
}
// 刷新方法
export function refreshToken() {
return request({
url: '/auth/refresh',
method: 'post'
})
}
// 获取用户详细信息
export function getInfo() {
return request({
@ -43,7 +45,7 @@ export function getInfo() {
export function logout() {
return request({
url: '/auth/logout',
method: 'post'
method: 'delete'
})
}

View File

@ -57,4 +57,13 @@ export function delMenu(menuId) {
url: '/system/menu/' + menuId,
method: 'delete'
})
}
// 获取路由
export const getRouters = () => {
return request({
url: '/system/menu/getRouters',
method: 'get'
})
}

File diff suppressed because it is too large Load Diff