Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
map-property-screen
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangzhaohui
map-property-screen
Commits
4e66dee0
Commit
4e66dee0
authored
Jun 26, 2024
by
zhangzhaohui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口名修改
parent
c3a1989d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
user.js
src/api/user.js
+2
-2
Login.vue
src/view/Login.vue
+3
-1
vite.config.js
vite.config.js
+2
-1
No files found.
src/api/user.js
View file @
4e66dee0
...
...
@@ -3,7 +3,7 @@ import request from '../utils/request'
// 获取验证码
export
function
getCodeImg
()
{
return
request
({
url
:
'/c
od
e'
,
url
:
'/c
aptchaImag
e'
,
headers
:
{
isToken
:
false
},
...
...
@@ -15,7 +15,7 @@ export function getCodeImg() {
// 登录方法
export
function
login
(
username
,
password
,
code
,
uuid
)
{
return
request
({
url
:
'/
auth/
login'
,
url
:
'/login'
,
headers
:
{
isToken
:
false
},
...
...
src/view/Login.vue
View file @
4e66dee0
...
...
@@ -99,7 +99,9 @@ const submitForm = async (formEl) => {
login
(
username
,
password
,
code
,
uuid
)
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
setToken
(
res
.
data
.
access_token
);
console
.
log
(
'aaaaaaaaaaaaaa'
)
console
.
log
(
res
)
setToken
(
res
.
token
);
router
.
push
(
"/"
);
}
})
...
...
vite.config.js
View file @
4e66dee0
...
...
@@ -24,8 +24,9 @@ export default defineConfig({
"/prod-api"
:
{
// target: "http://192.168.10.4:10024",
target
:
"https://xcsq.zjhmit.com"
,
// target: "http://o5476b3227.oicp.vip:10081",
changeOrigin
:
true
,
//
rewrite: (path) => path.replace(/^\/prod-api/, ""),
rewrite
:
(
path
)
=>
path
.
replace
(
/^
\/
prod-api/
,
""
),
},
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment