style:修改api
Showing
3 changed files
with
14 additions
and
6 deletions
1 | { | 1 | { |
2 | "TITLE": "汉中市数据上报系统", | 2 | "TITLE": "汉中市数据上报系统", |
3 | "THEME": "sb", | 3 | "THEME": "jg", |
4 | "SERVERAPI": "/bdcsjsb", | 4 | "SERVERAPI": "/bdcsjsb", |
5 | "MANAGEMENTAPI": "http: //192.168.2.236/management" | 5 | "MANAGEMENTAPI": "http://192.168.2.236/management" |
6 | } | 6 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | /* | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-03-23 17:19:52 | ||
5 | */ | ||
1 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 7 | // import SERVER from "./config"; |
8 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | ||
9 | // console.log(SERVER, 'SERVERSERVER'); | ||
3 | 10 | ||
4 | export function loginIn(username, password) { | 11 | export function loginIn (username, password) { |
5 | return request({ | 12 | return request({ |
6 | url: `${SERVER.MANAGEMENTAPI}/login?username=${username}&password=${password}`, | 13 | url: `${SERVER.MANAGEMENTAPI}/login?username=${username}&password=${password}`, |
7 | method: "post", | 14 | method: "post", |
8 | }); | 15 | }); |
9 | } | 16 | } |
10 | export function logout() { | 17 | export function logout () { |
11 | return request({ | 18 | return request({ |
12 | url: `${SERVER.MANAGEMENTAPI}/logout`, | 19 | url: `${SERVER.MANAGEMENTAPI}/logout`, |
13 | method: "post", | 20 | method: "post", | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from "./config"; | 2 | // import SERVER from "./config"; |
3 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | ||
3 | const workflow = '/workflow' | 4 | const workflow = '/workflow' |
4 | const log = '/log' | 5 | const log = '/log' |
5 | const crud = '/crud' | 6 | const crud = '/crud' | ... | ... |
-
Please register or sign in to post a comment