Commit 1d22bda1 authored by zhengke's avatar zhengke

修改

parent a66cee85
...@@ -77,10 +77,12 @@ export default{ ...@@ -77,10 +77,12 @@ export default{
} }
var token = ""; var token = "";
var key = ""; var key = "";
if (this.getLocalStorage() != null) { var tokenData={};
token = this.getLocalStorage().token; var localStorage = window.localStorage["loginUserInfo"];
key = this.getLocalStorage().SecretKey; if (localStorage !== undefined && localStorage != 'undefined') {
tokenData = JSON.parse(localStorage);
} }
token = tokenData.data.ErpToken;
var timestamp = (new Date()).valueOf(); var timestamp = (new Date()).valueOf();
var apiurl = this.domainManager().PostUrl; var apiurl = this.domainManager().PostUrl;
this.apiurl = apiurl; this.apiurl = apiurl;
......
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