Commit f9b7c5d8 authored by 黄奎's avatar 黄奎

页面修改

parent 46a23786
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
}, },
created() { created() {
this.userInfo = this.getLocalStorageSupplier(); this.userInfo = this.getLocalStorageSupplier();
console.log("userInfo",this.userInfo);
let language = localStorage.language; let language = localStorage.language;
if (!language) { if (!language) {
this.language = 'zh-CN'; this.language = 'zh-CN';
......
...@@ -459,8 +459,8 @@ export default { ...@@ -459,8 +459,8 @@ export default {
}, },
Vue.prototype.getLocalStorageSupplier = function () { Vue.prototype.getLocalStorageSupplier = function () {
var localStorageData = window.localStorage["SupplierInfo"]; var localStorageData = window.localStorage["userInfo"];
if (localStorageData !== undefined && localStorageData != 'SupplierInfo') { if (localStorageData !== undefined && localStorageData != 'userInfo') {
return JSON.parse(localStorageData); return JSON.parse(localStorageData);
} else { } else {
return null; return null;
......
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