Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
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
viitto
pptist
Commits
f422d8ef
Commit
f422d8ef
authored
Jun 17, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Access Denied
parent
4204b870
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
1 deletion
+45
-1
axios.ts
src/configs/axios.ts
+5
-1
router.ts
src/router/router.ts
+7
-0
DenyAccess.vue
src/views/SellTemplate/DenyAccess.vue
+33
-0
No files found.
src/configs/axios.ts
View file @
f422d8ef
...
@@ -14,7 +14,8 @@ export enum ApiResult{
...
@@ -14,7 +14,8 @@ export enum ApiResult{
'FAILED'
=
0
,
'FAILED'
=
0
,
'TOKEN_INVALID'
=
10000
,
'TOKEN_INVALID'
=
10000
,
'TOKEN_ILLEGAL'
=
10001
,
'TOKEN_ILLEGAL'
=
10001
,
'REMOTE_LOGIN'
=
10010
'REMOTE_LOGIN'
=
10010
,
'STATIC_ACCESS'
=
20005
}
}
export
enum
VipType
{
export
enum
VipType
{
...
@@ -116,6 +117,9 @@ service.interceptors.response.use(
...
@@ -116,6 +117,9 @@ service.interceptors.response.use(
useUserStore
().
setUserLoginOut
()
useUserStore
().
setUserLoginOut
()
},
1000
);
},
1000
);
}
}
if
(
response
.
data
.
resultCode
==
ApiResult
.
STATIC_ACCESS
){
window
.
location
.
href
=
'/denyAccess'
}
if
(
response
.
data
.
attach
){
if
(
response
.
data
.
attach
){
if
(
response
.
data
.
attach
.
userinfo
){
if
(
response
.
data
.
attach
.
userinfo
){
useUserStore
().
setOnlyUserInfo
(
response
.
data
.
attach
.
userinfo
)
useUserStore
().
setOnlyUserInfo
(
response
.
data
.
attach
.
userinfo
)
...
...
src/router/router.ts
View file @
f422d8ef
...
@@ -81,6 +81,13 @@ const routes: RouteRecordRaw[] = [
...
@@ -81,6 +81,13 @@ const routes: RouteRecordRaw[] = [
title
:
'下载行程设计'
title
:
'下载行程设计'
}
}
},
},
{
path
:
'/denyAccess'
,
component
:
()
=>
import
(
'@/views/SellTemplate/DenyAccess.vue'
),
meta
:{
title
:
'禁止访问'
}
},
{
{
path
:
'/notsupported'
,
path
:
'/notsupported'
,
component
:
()
=>
import
(
'@/views/Mobile/NotSupported.vue'
),
component
:
()
=>
import
(
'@/views/Mobile/NotSupported.vue'
),
...
...
src/views/SellTemplate/DenyAccess.vue
0 → 100644
View file @
f422d8ef
<
template
>
<div
class=
"window-width window-height column flex-center items-center"
style=
"background-color: #f1f2f4"
>
<div
class=
"rounded bg-white q-pa-xl light-shadow column flex-center items-center"
style=
"width: 650px;"
>
<div
style=
"width: 100%;"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/pptTD.png"
style=
"height: 27px;"
>
</div>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638533817842486720.png"
style=
"width: 300px;"
class=
"q-mt-xl"
>
<div
class=
"row items-center q-mt-xl "
>
<div
class=
"pingfangr q-ml-xl"
style=
"font-size: 18px;"
>
Access Denied
</div>
</div>
<div
class=
"q-mt-lg text-info text-small text-center"
style=
"font-size: 14px;"
>
系统判定你进行了恶意访问,当前无法进行系统使用,需等待xx小时xx分钟xx秒以后才能使用。
</div>
<div
class=
"q-mt-xl text-center"
style=
"font-size: 14px;"
>
<el-button
type=
"info"
size=
"large"
class=
"ppt-button text-weight-bold"
@
click=
"redicetTo('https://work.weixin.qq.com/kfid/kfc378aada578ca8b0e')"
>
点击申诉
</el-button>
</div>
</div>
</div>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
ApiResult
}
from
"@/configs/axios"
;
import
ConfigService
from
"@/services/ConfigService"
;
import
FileService
from
"@/services/FileService"
;
import
{
ref
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
openNewBlank
}
from
'@/utils/common'
const
redicetTo
=
(
url
:
string
)
=>
openNewBlank
(
url
)
</
script
>
<
style
>
</
style
>
\ No newline at end of file
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