提交 161fb348 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 da2a2cf9
<template>
<div id="app" style="height: 100%; width: 100%">
<router-view></router-view>
<router-view v-if="examInfo.exam_id"></router-view>
</div>
</template>
......
......@@ -59,6 +59,10 @@ export default {
}
.question-list-list {
display: flex;
column-gap: 20px;
img {
max-width: 100% !important;
}
}
.question-list-list-left {
flex: 1;
......@@ -66,6 +70,7 @@ export default {
font-weight: bold;
color: #222;
line-height: 28px;
overflow: hidden;
}
.question-list-list-right {
flex: 1;
......
......@@ -99,7 +99,7 @@ export default {
font-weight: bold;
line-height: 24px;
img {
width: 100% !important;
max-width: 100% !important;
}
}
}
......
......@@ -7,7 +7,7 @@ let studentInfo = {}
let examInfo = {}
try {
studentInfo = JSON.parse(window.localStorage.getItem('studentInfo')) || {}
examInfo = JSON.parse(window.localStorage.getItem('examInfo')) || {}
// examInfo = JSON.parse(window.localStorage.getItem('examInfo')) || {}
} catch (error) {
console.log(error)
}
......
import axios from 'axios'
import { Message } from 'element-ui'
import router from '@/router'
const httpRequest = axios.create({
timeout: 60000,
......@@ -44,13 +43,8 @@ httpRequest.interceptors.response.use(
function (error) {
if (error.response) {
const { status, message } = error.response.data
// 未登录
if (status === 403) {
router.push('/login')
} else {
Message.error(message || error.message)
console.error(`${status}: ${message}`)
}
Message.error(message || error.message)
console.error(`${status}: ${message}`)
} else {
console.log(error)
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论