Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
on-site-service-admin-view
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
external
on-site-service-admin-view
Commits
63d2000b
Commit
63d2000b
authored
Aug 29, 2022
by
qiaobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev'
parents
72a67316
4f3a3528
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
chengshijiangren.html
extra/chengshijiangren.html
+21
-0
request.js
src/util/axios/request.js
+3
-3
No files found.
extra/chengshijiangren.html
0 → 100644
View file @
63d2000b
<!DOCTYPE html>
<!-- 版本过低提示页 -->
<html>
<head>
<title>
提示
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1"
/>
<style>
#main-img
{
width
:
100%
;
}
</style>
</head>
<body>
<img
id=
"main-img"
src=
"http://chengshijiangren.oss-cn-beijing.aliyuncs.com/onsite-service-admin/img/1/1081623977324974080.png"
/>
</body>
</html>
src/util/axios/request.js
View file @
63d2000b
...
@@ -19,16 +19,16 @@ const err = (error) => {
...
@@ -19,16 +19,16 @@ const err = (error) => {
if
(
error
.
response
)
{
if
(
error
.
response
)
{
let
data
=
error
.
response
.
data
let
data
=
error
.
response
.
data
if
(
data
.
status
==
SYS_CONST
.
REQUEST
.
CONTROLLER_ERROR
)
{
if
(
data
.
status
==
SYS_CONST
.
REQUEST
.
CONTROLLER_ERROR
)
{
notification
.
error
({
message
:
'请求失败'
,
description
:
data
.
m
essage
})
notification
.
error
({
message
:
'请求失败'
,
description
:
data
.
m
sg
})
}
else
if
(
data
.
status
==
SYS_CONST
.
REQUEST
.
NOT_AUTHORITY
)
{
}
else
if
(
data
.
status
==
SYS_CONST
.
REQUEST
.
NOT_AUTHORITY
)
{
notification
.
error
({
message
:
'权限不足'
,
description
:
'当前用户无此操作权限,请联系管理员'
})
notification
.
error
({
message
:
'权限不足'
,
description
:
'当前用户无此操作权限,请联系管理员'
})
}
else
if
(
data
.
status
==
SYS_CONST
.
REQUEST
.
NOT_LOGIN
)
{
}
else
if
(
data
.
status
==
SYS_CONST
.
REQUEST
.
NOT_LOGIN
)
{
gotoLogin
()
gotoLogin
()
}
else
{
}
else
{
notification
.
error
({
message
:
'请求失败'
,
description
:
((
error
.
response
||
{}).
data
||
{}).
m
essage
||
"请求出现错误,请稍后再试"
})
notification
.
error
({
message
:
'请求失败'
,
description
:
((
error
.
response
||
{}).
data
||
{}).
m
sg
||
"请求出现错误,请稍后再试"
})
}
}
}
else
{
}
else
{
notification
.
error
({
message
:
'请求失败'
,
description
:
"请求出现错误,请稍后再试"
})
notification
.
error
({
message
:
'请求失败'
,
description
:
((
error
.
response
||
{}).
data
||
{}).
msg
||
"请求出现错误,请稍后再试"
})
}
}
return
Promise
.
reject
(
error
)
return
Promise
.
reject
(
error
)
};
};
...
...
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