Commit be447eee by 肖康

x

parent 23a61ef3
Showing with 22 additions and 38 deletions
...@@ -13,5 +13,8 @@ ...@@ -13,5 +13,8 @@
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected2 --> <!-- built files will be auto injected2 -->
<script>
window.userInfo=""
</script>
</body> </body>
</html> </html>
...@@ -292,26 +292,15 @@ ...@@ -292,26 +292,15 @@
}, },
methods: { methods: {
getData() { getData() {
if (window.userInfo) {
this.userinfo = window.userInfo;
} else {
this.$http('get', "/api/user/getuserinfo").then(res => { this.$http('get', "/api/user/getuserinfo").then(res => {
this.userinfo = res.data; this.userinfo = res.data;
if (res.data) { window.userInfo=res.data
sessionStorage.setItem('userInfox', JSON.stringify(res.data));
}
}) })
// var userInfo_ = sessionStorage.getItem('userInfox'); }
// if (userInfo_) {
// this.userinfo = JSON.parse(userInfo_);
// } else {
// this.$http('get', "/api/user/getuserinfo").then(res => {
// this.userinfo = res.data;
// if (res.data) {
// sessionStorage.setItem('userInfox', JSON.stringify(res.data));
// }
// })
// }
}, },
tabUi() { tabUi() {
...@@ -409,7 +398,8 @@ ...@@ -409,7 +398,8 @@
setTimeout(() => { setTimeout(() => {
Util.delCookie('token'); Util.delCookie('token');
window.location.href = '/#/login'; window.location.href = '/#/login';
sessionStorage.removeItem('userInfox') window.userInfo=""
history.go(0); history.go(0);
}, 2000) }, 2000)
} else { } else {
...@@ -428,7 +418,7 @@ ...@@ -428,7 +418,7 @@
this.$http('post', "/auth/logout").then(res => { this.$http('post', "/auth/logout").then(res => {
Util.delCookie('token'); Util.delCookie('token');
window.location.href = '/#/login'; window.location.href = '/#/login';
sessionStorage.removeItem('userInfox') window.userInfo=""
history.go(0); history.go(0);
}).catch(err => { }).catch(err => {
console.log(err.message); console.log(err.message);
......
...@@ -102,7 +102,8 @@ router.beforeEach((to, from, next) => { ...@@ -102,7 +102,8 @@ router.beforeEach((to, from, next) => {
} else { } else {
let token = Util.getCookie('token') || ''; let token = Util.getCookie('token') || '';
if (!token) { if (!token) {
sessionStorage.removeItem('userInfox')
window.userInfo=""
var path_=window.location.hash var path_=window.location.hash
path_=path_.substr(1) path_=path_.substr(1)
window.location.href = '/#/login?referer=' + encodeURI(path_); window.location.href = '/#/login?referer=' + encodeURI(path_);
......
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
</div> </div>
<div class="box2"> <div class="box2">
<p class="t1">单个型号询报价总数分析</p> <p class="t1">单个型号询报价总数分析</p>
<input type="text" placeholder="请输入型号" class="inp boxsiz" disabled /> <input type="text" placeholder="请输入型号" class="inp boxsiz" disabled="true" />
<div id="echarts_box2" style="width: 100%;height:200px;"></div> <div id="echarts_box2" style="width: 100%;height:200px;"></div>
</div> </div>
</div> </div>
......
...@@ -71,25 +71,15 @@ ...@@ -71,25 +71,15 @@
computed: {}, computed: {},
methods: { methods: {
getUseInfo() { getUseInfo() {
if (window.userInfo) {
this.userinfo = window.userInfo;
} else {
this.$http('get', "/api/user/getuserinfo").then(res => { this.$http('get', "/api/user/getuserinfo").then(res => {
this.userinfo = res.data; this.userinfo = res.data;
if (res.data) { window.userInfo=res.data
sessionStorage.setItem('userInfox', JSON.stringify(res.data));
}
}) })
// var userInfo_ = sessionStorage.getItem('userInfox'); }
// if (userInfo_) {
// this.userinfo = JSON.parse(userInfo_);
// } else {
// this.$http('get', "/api/user/getuserinfo").then(res => {
// this.userinfo = res.data;
// if (res.data) {
// sessionStorage.setItem('userInfox', JSON.stringify(res.data));
// }
// })
// }
}, },
submituser() { submituser() {
......
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="//yunxin.ichunt.com/favicon.ico"><title>cloudsystem</title><link href="//yunxin.ichunt.com/css/chunk-0492a5ab.3d6445eb.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-0a105498.06914ce1.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-15e903e6.55727460.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-38f382e0.143c08b9.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-49a1c939.b4a70c8b.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-5e89952e.9970a763.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-68af1761.12ee92ce.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-6cf25ae4.819b729c.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-7041f81e.903fb18e.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-726bdd35.5a95e96d.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-7c271fb9.d938ddcf.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-89bf742a.fb33d5e6.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-97cba434.c584dd9b.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-d09dd692.56dd64bd.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-ed440600.a51e2487.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-f06bc266.a7f65d28.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-fef16dca.0868bd02.css" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-0492a5ab.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-0a105498.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-15e903e6.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-38f382e0.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-4148ebe3.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-49a1c939.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-5e89952e.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-68af1761.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-6cf25ae4.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-7041f81e.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-726bdd35.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-7c271fb9.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-89bf742a.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-97cba434.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-d09dd692.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-ed440600.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-f06bc266.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-fef16dca.1622805186193.js" rel="prefetch"><link href="//yunxin.ichunt.com/css/app.83671de9.css" rel="preload" as="style"><link href="//yunxin.ichunt.com/css/chunk-vendors.8ffb1193.css" rel="preload" as="style"><link href="//yunxin.ichunt.com/static/js/app.1622805186193.js" rel="preload" as="script"><link href="//yunxin.ichunt.com/static/js/chunk-vendors.1622805186193.js" rel="preload" as="script"><link href="//yunxin.ichunt.com/css/chunk-vendors.8ffb1193.css" rel="stylesheet"><link href="//yunxin.ichunt.com/css/app.83671de9.css" rel="stylesheet"></head><body><noscript><strong>网络异常,请稍后加载</strong></noscript><div id="app"></div><script src="//yunxin.ichunt.com/static/js/chunk-vendors.1622805186193.js"></script><script src="//yunxin.ichunt.com/static/js/app.1622805186193.js"></script></body></html> <!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="//yunxin.ichunt.com/favicon.ico"><title>cloudsystem</title><link href="//yunxin.ichunt.com/css/chunk-0492a5ab.3d6445eb.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-0a105498.06914ce1.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-15e903e6.55727460.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-2ed8d364.5a95e96d.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-38f382e0.143c08b9.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-49a1c939.b4a70c8b.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-5e89952e.9970a763.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-68af1761.12ee92ce.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-6a1c18a2.a51e2487.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-6cf25ae4.819b729c.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-7041f81e.903fb18e.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-7c271fb9.d938ddcf.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-89bf742a.fb33d5e6.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-97cba434.c584dd9b.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-d09dd692.56dd64bd.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-f06bc266.a7f65d28.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-fef16dca.0868bd02.css" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-0492a5ab.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-0a105498.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-15e903e6.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-2ed8d364.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-38f382e0.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-4148ebe3.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-49a1c939.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-5e89952e.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-68af1761.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-6a1c18a2.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-6cf25ae4.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-7041f81e.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-7c271fb9.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-89bf742a.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-97cba434.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-d09dd692.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-f06bc266.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-fef16dca.1622805999777.js" rel="prefetch"><link href="//yunxin.ichunt.com/css/app.83671de9.css" rel="preload" as="style"><link href="//yunxin.ichunt.com/css/chunk-vendors.8ffb1193.css" rel="preload" as="style"><link href="//yunxin.ichunt.com/static/js/app.1622805999777.js" rel="preload" as="script"><link href="//yunxin.ichunt.com/static/js/chunk-vendors.1622805999777.js" rel="preload" as="script"><link href="//yunxin.ichunt.com/css/chunk-vendors.8ffb1193.css" rel="stylesheet"><link href="//yunxin.ichunt.com/css/app.83671de9.css" rel="stylesheet"></head><body><noscript><strong>网络异常,请稍后加载</strong></noscript><div id="app"></div><script>window.userInfo=""</script><script src="//yunxin.ichunt.com/static/js/chunk-vendors.1622805999777.js"></script><script src="//yunxin.ichunt.com/static/js/app.1622805999777.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
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 sign in to comment