Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d3eeff7b
authored
2023-03-23 17:24:17 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:修改api
1 parent
72c5f279
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
public/config.json
src/api/login.js
src/api/manageApi.js
public/config.json
View file @
d3eeff7
{
"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
...
...
src/api/login.js
View file @
d3eeff7
/*
* @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"
,
...
...
src/api/manageApi.js
View file @
d3eeff7
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'
...
...
Please
register
or
sign in
to post a comment