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

View File

@ -2,12 +2,6 @@ import request from '@/utils/request'
// 登录方法 // 登录方法
export function login(username, password, code, uuid) { export function login(username, password, code, uuid) {
const data = {
username,
password,
code,
uuid
}
return request({ return request({
url: '/auth/login', url: '/auth/login',
headers: { headers: {
@ -15,7 +9,7 @@ export function login(username, password, code, uuid) {
repeatSubmit: false repeatSubmit: false
}, },
method: 'post', 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() { export function getInfo() {
return request({ return request({
@ -43,7 +45,7 @@ export function getInfo() {
export function logout() { export function logout() {
return request({ return request({
url: '/auth/logout', url: '/auth/logout',
method: 'post' method: 'delete'
}) })
} }

View File

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

File diff suppressed because it is too large Load Diff