Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
roncoo
roncoo-education-web
比较版本
dd6970d4f3d8404a7c70f3106e47eb7d4a2b0dd6...87c67519430f4ef96c150244e4c46ad10e4c1dfd
R
roncoo-education-web
项目概览
roncoo
/
roncoo-education-web
9 个月 前同步成功
通知
98
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roncoo-education-web
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
源分支
87c67519430f4ef96c150244e4c46ad10e4c1dfd
选择Git版本
...
目标分支
dd6970d4f3d8404a7c70f3106e47eb7d4a2b0dd6
选择Git版本
比较
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
隐藏空白更改
内联
并排
Showing
8 changed file
with
21 addition
and
5 deletion
+21
-5
api/method.js
api/method.js
+2
-2
components/common/Header.vue
components/common/Header.vue
+1
-1
config/index.js
config/index.js
+1
-1
pages/account/collect.vue
pages/account/collect.vue
+4
-0
pages/account/course.vue
pages/account/course.vue
+4
-0
pages/account/index.vue
pages/account/index.vue
+4
-0
pages/account/order.vue
pages/account/order.vue
+4
-0
pages/search.vue
pages/search.vue
+1
-1
未找到文件。
api/method.js
浏览文件 @
87c67519
...
...
@@ -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
}
}
}
...
...
components/common/Header.vue
浏览文件 @
87c67519
...
...
@@ -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>
...
...
config/index.js
浏览文件 @
87c67519
const
result
=
{
baseUrl
:
'
http
://localhost:8180
'
,
// 接口地址,本地运行默认读取该配置
baseUrl
:
'
http
s://eduos.roncoo.net/gateway
'
,
// 接口地址,本地运行默认读取该配置
tokenName
:
'
OSTK
'
// cookie名称
}
if
(
process
.
env
.
NODE_ENV
===
'
production
'
)
{
...
...
pages/account/collect.vue
浏览文件 @
87c67519
...
...
@@ -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
'
)
}
})
}
}
...
...
pages/account/course.vue
浏览文件 @
87c67519
...
...
@@ -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
'
)
}
})
}
}
...
...
pages/account/index.vue
浏览文件 @
87c67519
...
...
@@ -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
()
{
...
...
pages/account/order.vue
浏览文件 @
87c67519
...
...
@@ -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
)
{
...
...
pages/search.vue
浏览文件 @
87c67519
<
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"
>
...
...