Commit 46a23786 authored by 黄奎's avatar 黄奎

js修改

parent ee276389
......@@ -151,8 +151,8 @@
data() {
return {
userInfo: {
name: "",
password: "",
name: "13551126756",
password: "123456",
Domain: ""
},
groupModel: [],
......
......@@ -310,8 +310,9 @@ export default {
}
var apiNewurl = this.domainManager().PostUrl;
var timestamp = (new Date()).valueOf();
if (!this.getLocalStorageSupplier().userInfo && this.getLocalStorageSupplier().userInfo != "" && this.$route.path.toLowerCase() != "/supplierlogin") {
var uid=0;
if (this.getLocalStorageSupplier() && this.getLocalStorageSupplier().userInfo && this.getLocalStorageSupplier().userInfo != "" && this.$route.path.toLowerCase() != "/supplierlogin") {
uid=this.getLocalStorageSupplier().SupplierAccountId;
}
else
{
......@@ -334,7 +335,7 @@ export default {
"timestamp": timestamp,
"token": token,
"sign": md5Str,
"uid": this.getLocalStorageSupplier().SupplierAccountId
"uid":uid
}
this.$http.post(apiNewurl, postData, {
......
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