Commit 3addd054 by 刘泽奇

123

parent f5b91d96
...@@ -587,13 +587,14 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => { ...@@ -587,13 +587,14 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
}); });
}, },
postReq(path, data) { postReq(path, data) {
var _this = this;
return axios.post(path, data, { "headers": { 'codepath': this.codePath } }).then(function (r) { return axios.post(path, data, { "headers": { 'codepath': this.codePath } }).then(function (r) {
if (r.data.status == -99) { if (r.data.status == -99) {
$.removeCookie("userpin"); $.removeCookie("userpin");
$.removeCookie("userName"); $.removeCookie("userName");
$.removeCookie("channelUserId"); $.removeCookie("channelUserId");
this.$root.user_Name = ""; _this.$root.user_Name = "";
this.$root.channelUserId = ''; _this.$root.channelUserId = '';
} }
return r.data ? r.data : null; return r.data ? r.data : null;
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
var obj = this.$root.copyParams(this.params, "subOtherOrder", "/action/tmOrder/springBoard", 'yes', 'yes'); var obj = this.$root.copyParams(this.params, "subOtherOrder", "/action/tmOrder/springBoard", 'yes', 'yes');
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d) => { this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d) => {
console.log("---------submitOrder-------"); console.log("---------submitOrder-------");
if (d.data == '-99') { if (d.status == '-99') {
localStorage.OtherOrderParams = JSON.stringify(this.params); localStorage.OtherOrderParams = JSON.stringify(this.params);
this.$message.warning("未登录"); this.$message.warning("未登录");
this.$router.push({ path: `/${this.$root.channelName}/login`, }); this.$router.push({ path: `/${this.$root.channelName}/login`, });
......
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