d3eeff7b by 任超

style:修改api

1 parent 72c5f279
{
"TITLE": "汉中市数据上报系统",
"THEME": "sb",
"THEME": "jg",
"SERVERAPI": "/bdcsjsb",
"MANAGEMENTAPI": "http: //192.168.2.236/management"
"MANAGEMENTAPI": "http://192.168.2.236/management"
}
\ No newline at end of file
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-23 17:19:52
*/
import request from "@/utils/request";
import SERVER from "./config";
// import SERVER from "./config";
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
// console.log(SERVER, 'SERVERSERVER');
export function loginIn(username, password) {
export function loginIn (username, password) {
return request({
url: `${SERVER.MANAGEMENTAPI}/login?username=${username}&password=${password}`,
method: "post",
});
}
export function logout() {
export function logout () {
return request({
url: `${SERVER.MANAGEMENTAPI}/logout`,
method: "post",
......
import request from '@/utils/request'
import SERVER from "./config";
// import SERVER from "./config";
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
const workflow = '/workflow'
const log = '/log'
const crud = '/crud'
......