闫增涛
6 小时以前 633521e74bd135a582d5392341af785871912cb7
答题器样式优化,config删除多余项
3个文件已修改
16 ■■■■■ 已修改文件
src/assets/js/config.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/examinations/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/plugin/axios/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/config.js
@@ -1,9 +1,4 @@
import axios from "axios";
// export const resourceCtx = "http://182.92.203.7:3007/books/resource/"; // 资源请求地址
// export const resourceCtx = "https://www.tepcb.com/books/resource/"; // 资源请求地址
export const resourceCtx = "https://jsek.bnuic.com/books/resource/"; // 资源请求地址
export const tinymceBaseUrl = 'https://jsek.bnuic.com/home/'
// export const tinymceBaseUrl = 'https://www.tepcb.com/home/'
export let activeBook = {}; // 资源请求地址
export let goodsStore = "";
// 请求教材配置信息
@@ -13,19 +8,15 @@
  );
  return response.data;
};
export const appId = 3;
export const requestTimeOut = 300000; // 请求超时时间
export const tokenKey = "token";
// export const tokenKey = "website-front-token"
const config = {
  resourceCtx,
  tinymceBaseUrl,
  activeBook,
  requestTimeOut,
  tokenKey,
  goodsStore,
  appId,
  getBookConfig
};
export default config;
src/components/examinations/index.vue
@@ -969,10 +969,13 @@
  max-width: 80%;
  min-width: 220px;
}
.examination ul li sup{
  margin-bottom:8px ;
}
</style>
<style lang="less" scoped>
.catalogName {
.catalogName {
  display: flex;
  text-indent: 1em !important;
  font-size: 16px;
@@ -1613,3 +1616,4 @@
  flex-wrap: wrap;
}
</style>
src/plugin/axios/index.js
@@ -11,6 +11,7 @@
service.interceptors.request.use(
  (config) => {
    let token = localStorage.getItem(myConfig.tokenKey)
    config.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
    if (token) config.headers['Authorization'] = `bearer ${token}`
    return config
  },