Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
cxt104926
Stusystem Web
提交
48d360e8
S
Stusystem Web
项目概览
cxt104926
/
Stusystem Web
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Stusystem Web
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
48d360e8
编写于
4月 23, 2021
作者:
cxt104926
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug
上级
634d5b5b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
5 deletion
+25
-5
src/api.js
src/api.js
+6
-3
src/views/manager/index.vue
src/views/manager/index.vue
+19
-2
未找到文件。
src/api.js
浏览文件 @
48d360e8
...
...
@@ -28,7 +28,10 @@ axios.interceptors.response.use(success => {
},
error
=>
{
let
r
=
null
;
let
msg
=
''
;
let
code
=
error
.
response
.
status
;
let
code
=
0
;
if
(
error
.
response
!==
undefined
)
{
code
=
error
.
response
.
status
;
}
switch
(
code
)
{
case
400
:
msg
=
'
请求错误!
'
...
...
@@ -73,8 +76,8 @@ axios.interceptors.response.use(success => {
msg
=
'
http版本不支持该请求
'
break
;
default
:
msg
=
'
未
知的错误,请联系管理员
!
'
//
r = '/login';
msg
=
'
未
登录或者登录过期,请重新登录
!
'
r
=
'
/login
'
;
}
// 在某些特定情况下跳转页面
if
(
r
!==
null
)
{
...
...
src/views/manager/index.vue
浏览文件 @
48d360e8
...
...
@@ -28,6 +28,7 @@
</el-menu>
</el-scrollbar>
</el-aside>
<button
type=
"button"
@
click=
"splitStr"
>
分割
</button>
<!-- 系统头部 -->
<el-container>
...
...
@@ -205,6 +206,15 @@
},
methods
:
{
splitStr
(){
let
str
=
"
alipay_sdk=alipay-sdk-java-dynamicVersionNo&app_id=2021002132613627&biz_content=%7B%22body%22%3A%22%E8%81%8C%E4%B8%9A%E5%8D%AB%E7%94%9F%E8%A7%86%E5%B1%8F%E5%9F%B9%E8%AE%AD%E7%BC%B4%E8%B4%B9%22%2C%22out_trade_no%22%3A%222021042313194186974695%22%2C%22subject%22%3A%22%E8%81%8C%E4%B8%9A%E5%8D%AB%E7%94%9F%E8%A7%86%E5%B1%8F%E5%9F%B9%E8%AE%AD%E7%BC%B4%E8%B4%B9%22%2C%22timeout_express%22%3A%222m%22%2C%22total_amount%22%3A%220.01%22%7D&charset=utf-8&format=json&method=alipay.trade.app.pay¬ify_url=http%3A%2F%2F127.0.0.1%3A8004%2Fh5pay%2Fh5aliquery&sign=WAw7MUhfBZXuTQUOfe4KbY2Tx2qZwmPruuMyawYtzN79S%2BBE94hXsJYJ9RimRVFWWSK13ynOZyEMW%2BLepBSDRYdR8U583m%2FV66CLiwQezNeUhnterTKBMblPfnjxDHyEDPn56JOPOBID0Ix9yqgPtL4%2F%2FVCahvJpoLGZZlCDdzxDQLX4HBLqpcjAXVRc6aVxkdK4sTIkBiT83koeo3B55ehnlfqhlBnLlfVRor78qTHn%2BhQIeVvy4ZSxxK6pKLZlzu8gZ%2FUY8DtNpcgwHj3giOP74ImBp67mqIROXrT0SgprU3FKs%2BMe5CvttmVsq%2F1gpoLINivbucB40FOLVQpgTw%3D%3D&sign_type=RSA2×tamp=2021-04-23+13%3A19%3A42&version=1.0
"
;
let
strings
=
str
.
split
(
"
&
"
);
console
.
log
(
strings
);
debugger
},
init
()
{
let
userInfo
=
this
.
$store
.
state
.
userInfo
;
if
(
userInfo
===
null
||
userInfo
.
length
===
0
)
{
...
...
@@ -262,7 +272,12 @@
// 提交修改的密码
submitPwd
()
{
let
url
=
"
/updatePwd?id=
"
+
this
.
userInfo
.
id
+
"
&oldPwd=
"
+
this
.
pwdFormData
.
oldPassword
+
"
&newPwd=
"
+
this
.
pwdFormData
.
password
;
this
.
api
.
getApi
(
url
);
this
.
api
.
getApi
(
url
).
then
(
e
=>
{
if
(
e
.
data
.
code
===
200
){
this
.
pwdAddAndEditDialogFormVisible
=
false
;
this
.
loginOut
();
}
})
},
// 关闭密码弹框
...
...
@@ -305,8 +320,10 @@
this
.
api
.
getApi
(
"
/logout
"
).
then
(
e
=>
{
if
(
e
.
data
.
code
===
200
)
{
this
.
$store
.
commit
(
"
removeState
"
)
this
.
$router
.
push
(
"
/login
"
);
localStorage
.
removeItem
(
"
Authorization
"
);
this
.
$router
.
push
(
"
/login
"
);
}
else
{
Message
.
info
(
"
系统出现问题
"
)
}
});
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录