...
 
Commits (4)
    https://gitcode.net/roncoocom/roncoo-education-web/-/commit/373ca5c2023bf679d9980481a3d2cd2b6892354e 登录过期跳转 2023-11-29T13:52:11+08:00 水边哇 690713167@qq.com https://gitcode.net/roncoocom/roncoo-education-web/-/commit/07ad79ff11801157e4cd7994fa81b46d115ce651 登录过期调整 2023-11-29T13:53:59+08:00 水边哇 690713167@qq.com https://gitcode.net/roncoocom/roncoo-education-web/-/commit/5f448ebc173daec508e7507ed3357af779b0d98d 登录过期处理 2023-11-30T12:42:48+08:00 水边哇 690713167@qq.com https://gitcode.net/roncoocom/roncoo-education-web/-/commit/87c67519430f4ef96c150244e4c46ad10e4c1dfd fix: 处理搜索页面的显示问题 2023-12-15T14:04:34+08:00 fengyw fengyw@roncoo.com
......@@ -36,8 +36,8 @@ const createHttp = (token) => {
if (response.data.code >= 300 && response.data.code <= 400) {
if (process.client) { // 客户端请求接口token 过期让他重新登录
if (window.location.href.indexOf('/login') === -1 && window.location.href.indexOf('/agreement') === -1) {
this.$store.dispatch('REDIRECT_LOGIN', result.code)
return
// store.dispatch('REDIRECT_LOGIN')
// return
}
}
}
......
......@@ -12,7 +12,7 @@
<a :class="{active: isNow === item.navUrl}" :href="item.navUrl" :target="item.target">{{ item.navTitle }}</a>
</li>
</ul>
<div v-show="!hideTop" class="search_box clearfix">
<div v-show="!hideTop && !hideSearch" class="search_box clearfix">
<div class="clearfix">
<button class="search_btn" @click="handleSearch">
<span class="iconfont"></span>
......
const result = {
baseUrl: 'http://localhost:8180', // 接口地址,本地运行默认读取该配置
baseUrl: 'https://eduos.roncoo.net/gateway', // 接口地址,本地运行默认读取该配置
tokenName: 'OSTK' // cookie名称
}
if (process.env.NODE_ENV === 'production') {
......
......@@ -76,6 +76,10 @@ export default {
this.pageObj = res
console.log('res', res)
}
}).catch(err => {
if (err.code >= 300 && err.code <= 400) {
this.$store.dispatch('REDIRECT_LOGIN')
}
})
}
}
......
......@@ -78,6 +78,10 @@ export default {
this.notdata = false
this.pageObj = res
}
}).catch(err => {
if (err.code >= 300 && err.code <= 400) {
this.$store.dispatch('REDIRECT_LOGIN')
}
})
}
}
......
......@@ -140,6 +140,10 @@ export default {
userInfo() {
getUserInfo().then(res => {
this.obj = res || {}
}).catch(err => {
if (err.code >= 300 && err.code <= 400) {
this.$store.dispatch('REDIRECT_LOGIN')
}
})
},
editInfo() {
......
......@@ -126,6 +126,10 @@ export default {
this.notdata = false
this.pageObj = res
}
}).catch(err => {
if (err.code >= 300 && err.code <= 400) {
this.$store.dispatch('REDIRECT_LOGIN')
}
})
},
closeOrder(orderNo) {
......
<template>
<div class="search_page">
<y-header :active="'search'" :search-text="$route.query.search" />
<y-header :active="'search'" :hide-search="true" :search-text="$route.query.search" />
<div class="search_input">
<div class="search_box_content clearfix">
<div class="form">
......