Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-exam-show
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-exam-show
Commits
161fb348
提交
161fb348
authored
9月 01, 2023
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
da2a2cf9
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
10 行增加
和
11 行删除
+10
-11
app.vue
src/app.vue
+1
-1
QuestionList.vue
src/components/QuestionList.vue
+5
-0
QuestionListItem.vue
src/components/QuestionListItem.vue
+1
-1
index.js
src/store/index.js
+1
-1
axios.js
src/utils/axios.js
+2
-8
没有找到文件。
src/app.vue
浏览文件 @
161fb348
<
template
>
<
template
>
<div
id=
"app"
style=
"height: 100%; width: 100%"
>
<div
id=
"app"
style=
"height: 100%; width: 100%"
>
<router-view></router-view>
<router-view
v-if=
"examInfo.exam_id"
></router-view>
</div>
</div>
</
template
>
</
template
>
...
...
src/components/QuestionList.vue
浏览文件 @
161fb348
...
@@ -59,6 +59,10 @@ export default {
...
@@ -59,6 +59,10 @@ export default {
}
}
.question-list-list
{
.question-list-list
{
display
:
flex
;
display
:
flex
;
column-gap
:
20px
;
img
{
max-width
:
100%
!
important
;
}
}
}
.question-list-list-left
{
.question-list-list-left
{
flex
:
1
;
flex
:
1
;
...
@@ -66,6 +70,7 @@ export default {
...
@@ -66,6 +70,7 @@ export default {
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#222
;
color
:
#222
;
line-height
:
28px
;
line-height
:
28px
;
overflow
:
hidden
;
}
}
.question-list-list-right
{
.question-list-list-right
{
flex
:
1
;
flex
:
1
;
...
...
src/components/QuestionListItem.vue
浏览文件 @
161fb348
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
font-weight
:
bold
;
font-weight
:
bold
;
line-height
:
24px
;
line-height
:
24px
;
img
{
img
{
width
:
100%
!
important
;
max-
width
:
100%
!
important
;
}
}
}
}
}
}
...
...
src/store/index.js
浏览文件 @
161fb348
...
@@ -7,7 +7,7 @@ let studentInfo = {}
...
@@ -7,7 +7,7 @@ let studentInfo = {}
let
examInfo
=
{}
let
examInfo
=
{}
try
{
try
{
studentInfo
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'studentInfo'
))
||
{}
studentInfo
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'studentInfo'
))
||
{}
examInfo
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'examInfo'
))
||
{}
//
examInfo = JSON.parse(window.localStorage.getItem('examInfo')) || {}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
}
}
...
...
src/utils/axios.js
浏览文件 @
161fb348
import
axios
from
'axios'
import
axios
from
'axios'
import
{
Message
}
from
'element-ui'
import
{
Message
}
from
'element-ui'
import
router
from
'@/router'
const
httpRequest
=
axios
.
create
({
const
httpRequest
=
axios
.
create
({
timeout
:
60000
,
timeout
:
60000
,
...
@@ -44,13 +43,8 @@ httpRequest.interceptors.response.use(
...
@@ -44,13 +43,8 @@ httpRequest.interceptors.response.use(
function
(
error
)
{
function
(
error
)
{
if
(
error
.
response
)
{
if
(
error
.
response
)
{
const
{
status
,
message
}
=
error
.
response
.
data
const
{
status
,
message
}
=
error
.
response
.
data
// 未登录
Message
.
error
(
message
||
error
.
message
)
if
(
status
===
403
)
{
console
.
error
(
`
${
status
}
:
${
message
}
`
)
router
.
push
(
'/login'
)
}
else
{
Message
.
error
(
message
||
error
.
message
)
console
.
error
(
`
${
status
}
:
${
message
}
`
)
}
}
else
{
}
else
{
console
.
log
(
error
)
console
.
log
(
error
)
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论