Commit a967a832 authored by 沈良进's avatar 沈良进

save

parent 284ea16d
...@@ -105,6 +105,7 @@ Vue.prototype.apipost = function(cmd, msg, successCall, faildCall) { ...@@ -105,6 +105,7 @@ Vue.prototype.apipost = function(cmd, msg, successCall, faildCall) {
var encodeMsg = encodeURIComponent(JSON.stringify(msg)).toLowerCase(); var encodeMsg = encodeURIComponent(JSON.stringify(msg)).toLowerCase();
var md5Str = md5(`cmd=${cmd}&msg=${encodeMsg}&timestamp=${timestamp}&token=${token}&key=${key}`); var md5Str = md5(`cmd=${cmd}&msg=${encodeMsg}&timestamp=${timestamp}&token=${token}&key=${key}`);
const path = this.$route.path
var postData = { var postData = {
msg: msg, msg: msg,
cmd: cmd, cmd: cmd,
...@@ -121,6 +122,13 @@ Vue.prototype.apipost = function(cmd, msg, successCall, faildCall) { ...@@ -121,6 +122,13 @@ Vue.prototype.apipost = function(cmd, msg, successCall, faildCall) {
} }
}) })
.then(res => { .then(res => {
if(res.data.resultCode === 10000) {
this.$router.replace({
path: '/login',
query: {path: path}
});
return
}
successCall(res); successCall(res);
}, faildCall) }, faildCall)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment