Compare commits
4 Commits
f53a583c3c
...
538e32fc7e
Author | SHA1 | Date |
---|---|---|
duanxiaohai | 538e32fc7e | |
duanxiaohai | d7495e8fa5 | |
duanxiaohai | 321f3c9e17 | |
duanxiaohai | 31ea03965a |
|
@ -30,6 +30,7 @@ axios.interceptors.response.use(
|
|||
if (error.response) {
|
||||
if (error.response.status == 401) {
|
||||
ElMessage.error("请重新登录!");
|
||||
// 清空cook
|
||||
const cookies = document.cookie.split(";");
|
||||
for (let i = 0; i < cookies.length; i++) {
|
||||
const cookie = cookies[i];
|
||||
|
@ -37,6 +38,7 @@ axios.interceptors.response.use(
|
|||
const name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
|
||||
document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;";
|
||||
}
|
||||
|
||||
router.replace({
|
||||
path: "/guide",
|
||||
});
|
||||
|
|
|
@ -160,9 +160,12 @@ const login = () => {
|
|||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
|
||||
var tokenU = routers.query.token;
|
||||
// tokenU = "6b0e380b4a8f46baae4923f83faf670d";
|
||||
if (tokenU) {
|
||||
document.cookie = `lytoken=${tokenU}`;
|
||||
var token = getCookie("lytoken");
|
||||
// var token = "6b0e380b4a8f46baae4923f83faf670d";
|
||||
// console.log('token', token)
|
||||
if (!token) {
|
||||
window.location.href =
|
||||
"http://220.191.238.50:996/api/login?returnURL=" +
|
||||
|
@ -171,6 +174,16 @@ const login = () => {
|
|||
tools.data.set("token", token);
|
||||
tools.data.set("type", 2);
|
||||
}
|
||||
} else {
|
||||
window.location.href =
|
||||
"http://220.191.238.50:996/api/login?returnURL=" +
|
||||
window.location.href;
|
||||
}
|
||||
|
||||
// var token = getCookie("lytoken");
|
||||
console.log(routers.query.token);
|
||||
|
||||
// console.log('token', token)
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@
|
|||
</div>
|
||||
<div class="tableBoxCenter1" @click="goto(item)">详情</div>
|
||||
</div>
|
||||
<div class="tableBoxTopa">服务对象:{{ item.text }}</div>
|
||||
<div class="tableBoxTopa">服务对象:{{ item.fwdx }}</div>
|
||||
<div class="tableBoxTopa">牵头负责单位:{{ item.sjqtfzdw }}</div>
|
||||
<div class="progress-container">
|
||||
<div
|
||||
|
@ -654,6 +654,7 @@ const getData = async (name, fullName) => {
|
|||
text: item.fwdx,
|
||||
xh: item.xh,
|
||||
sjqtfzdw: item.sjqtfzdw,
|
||||
fwdx: item.fwdx,
|
||||
progress: "95", //进度条
|
||||
});
|
||||
// console.log( data.tabPublicService);
|
||||
|
|
Loading…
Reference in New Issue