提交 48d360e8 编写于 作者: cxt104926's avatar cxt104926

bug

上级 634d5b5b
......@@ -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) {
......
......@@ -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&notify_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&timestamp=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.
先完成此消息的编辑!
想要评论请 注册