Commit 1e2a1fa8 authored by 黄奎's avatar 黄奎

页面修改

parent 502a887a
...@@ -28,9 +28,8 @@ Vue.prototype.apipost = function (cmd, msg, successCall, faildCall) { ...@@ -28,9 +28,8 @@ Vue.prototype.apipost = function (cmd, msg, successCall, faildCall) {
if (msg == null || msg == "") { if (msg == null || msg == "") {
msg = {} msg = {}
} }
var apiurl = this.domainManager().PostUrl;
var timestamp = (new Date()).valueOf(); var timestamp = (new Date()).valueOf();
this.apiurl = apiurl; var apiurl = this.domainManager().PostUrl;
var token = ""; var token = "";
var key = ""; var key = "";
var tempLanguage = 0; var tempLanguage = 0;
...@@ -56,17 +55,11 @@ Vue.prototype.apipost = function (cmd, msg, successCall, faildCall) { ...@@ -56,17 +55,11 @@ Vue.prototype.apipost = function (cmd, msg, successCall, faildCall) {
} }
}) })
.then(res => { .then(res => {
if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
} else if (res.resultCode == 10005) {
this.$router.go(-1);
} else {
successCall(res); successCall(res);
}
}, faildCall) }, faildCall)
} }
//ERP本地缓存 //获取缓存
Vue.prototype.getLocalStorage = function () { Vue.prototype.getLocalStorage = function () {
var localStorageData = window.localStorage["b2bUser"]; var localStorageData = window.localStorage["b2bUser"];
if (localStorageData !== undefined && localStorageData != 'undefined') { if (localStorageData !== undefined && localStorageData != 'undefined') {
......
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