Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erpapp
Project
Project
Details
Activity
Releases
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
李苏
erpapp
Commits
32de1461
Commit
32de1461
authored
Feb 08, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消登录跳转,登录失败提示
parent
67f60ca7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
service.js
common/service/service.js
+6
-2
login.vue
pages/login/login.vue
+1
-1
No files found.
common/service/service.js
View file @
32de1461
...
@@ -3,7 +3,7 @@ import {ACCESS_TOKEN} from '@/common/util/constants.js'
...
@@ -3,7 +3,7 @@ import {ACCESS_TOKEN} from '@/common/util/constants.js'
import
configService
from
'./config.service.js'
import
configService
from
'./config.service.js'
import
tip
from
'@/common/util/tip.js'
;
import
tip
from
'@/common/util/tip.js'
;
import
store
from
'@/store/index.js'
;
import
store
from
'@/store/index.js'
;
import
Vue
from
'vue'
let
apiUrl
=
configService
.
apiUrl
;
let
apiUrl
=
configService
.
apiUrl
;
const
getTokenStorage
=
()
=>
{
const
getTokenStorage
=
()
=>
{
...
@@ -58,7 +58,11 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
...
@@ -58,7 +58,11 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
// }
// }
return
response
return
response
},
(
response
)
=>
{
},
(
response
)
=>
{
// 请求错误做点什么
uni
.
showToast
({
title
:
'请求失败,请检查网络。'
,
icon
:
'none'
,
duration
:
2000
});
console
.
log
(
"请求错误做点什么"
,
response
);
console
.
log
(
"请求错误做点什么"
,
response
);
if
(
response
)
{
if
(
response
)
{
let
data
=
response
.
data
let
data
=
response
.
data
...
...
pages/login/login.vue
View file @
32de1461
...
@@ -222,7 +222,7 @@
...
@@ -222,7 +222,7 @@
password
:
loginParams
.
encodePWD
,
password
:
loginParams
.
encodePWD
,
newPassword
:
md5
(
this
.
password
)
newPassword
:
md5
(
this
.
password
)
}
}
this
.
loading
=
true
;
//
this.loading=true;
this
.
mLogin
(
params
).
then
((
res
)
=>
{
this
.
mLogin
(
params
).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
success
){
if
(
res
.
data
.
success
){
...
...
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