Commit 1d22bda1 authored by zhengke's avatar zhengke

修改

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