提交 b224f3bb authored 作者: lihuihui's avatar lihuihui

修改请求超时时间,修改提示弹窗

上级 3cc727fd
...@@ -7,7 +7,7 @@ export default class API { ...@@ -7,7 +7,7 @@ export default class API {
// 让ajax携带cookie // 让ajax携带cookie
axios.defaults.withCredentials = true axios.defaults.withCredentials = true
this._axios = axios.create({ this._axios = axios.create({
timeout: config.timeout || 5 * 1000, timeout: config.timeout || 60 * 1000,
/* 表示服务器响应的数据类型,可以是 'arraybuffer', 'blob', 'document', 'json', 'text', 'stream' */ /* 表示服务器响应的数据类型,可以是 'arraybuffer', 'blob', 'document', 'json', 'text', 'stream' */
responseType: config.resType || 'json', responseType: config.resType || 'json',
/* 将自动加在 `url` 前面,除非 `url` 是一个绝对 URL */ /* 将自动加在 `url` 前面,除非 `url` 是一个绝对 URL */
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
</template> </template>
<!-- 复合题 --> <!-- 复合题 -->
<template v-if="questionData.question_item_type == 5 || questionData.question_item_type == 7 || questionData.question_item_type == 8"> <template v-if="questionData.question_item_type == 5 || questionData.question_item_type == 7 || questionData.question_item_type == 8">
<!-- || item.question_item_type == 7 || item.question_item_type == 8 -->
<div class="title-type"> <div class="title-type">
<div class="type">{{ questionData.question_item_title }}</div> <div class="type">{{ questionData.question_item_title }}</div>
<div class="num">{{ questionParams.questionIndex + 1 }}/{{ questionParams.question.total_question_count }}</div> <div class="num">{{ questionParams.questionIndex + 1 }}/{{ questionParams.question.total_question_count }}</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论