Commit be447eee by 肖康

x

parent 23a61ef3
Showing with 26 additions and 42 deletions
......@@ -13,5 +13,8 @@
</noscript>
<div id="app"></div>
<!-- built files will be auto injected2 -->
<script>
window.userInfo=""
</script>
</body>
</html>
......@@ -292,26 +292,15 @@
},
methods: {
getData() {
this.$http('get', "/api/user/getuserinfo").then(res => {
this.userinfo = res.data;
if (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));
// }
// })
// }
if (window.userInfo) {
this.userinfo = window.userInfo;
} else {
this.$http('get', "/api/user/getuserinfo").then(res => {
this.userinfo = res.data;
window.userInfo=res.data
})
}
},
tabUi() {
......@@ -409,7 +398,8 @@
setTimeout(() => {
Util.delCookie('token');
window.location.href = '/#/login';
sessionStorage.removeItem('userInfox')
window.userInfo=""
history.go(0);
}, 2000)
} else {
......@@ -428,7 +418,7 @@
this.$http('post', "/auth/logout").then(res => {
Util.delCookie('token');
window.location.href = '/#/login';
sessionStorage.removeItem('userInfox')
window.userInfo=""
history.go(0);
}).catch(err => {
console.log(err.message);
......
......@@ -102,7 +102,8 @@ router.beforeEach((to, from, next) => {
} else {
let token = Util.getCookie('token') || '';
if (!token) {
sessionStorage.removeItem('userInfox')
window.userInfo=""
var path_=window.location.hash
path_=path_.substr(1)
window.location.href = '/#/login?referer=' + encodeURI(path_);
......
......@@ -207,7 +207,7 @@
</div>
<div class="box2">
<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>
</div>
......
......@@ -71,25 +71,15 @@
computed: {},
methods: {
getUseInfo() {
this.$http('get', "/api/user/getuserinfo").then(res => {
if (window.userInfo) {
this.userinfo = window.userInfo;
} else {
this.$http('get', "/api/user/getuserinfo").then(res => {
this.userinfo = res.data;
if (res.data) {
sessionStorage.setItem('userInfox', JSON.stringify(res.data));
}
window.userInfo=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() {
......
<!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>
\ No newline at end of file
<!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
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