@ -42,7 +42,7 @@ if (isDev) {
// 老师
//ebugType="teacher";
// 学生
debugType="student";
//debugType="student";
function railsgettimes(proxy) {
@ -94,9 +94,10 @@ export function initAxiosInterceptors(props) {
requestMap[keyName] = false;
}
axios.interceptors.request.use(
config => {
config.headers['Content-Type']= 'no-cache'
// if (token) { // 每次发送请求之前判断是否存在token,如果存在,则统一在http请求的header都加上token,不用每次请求都手动添加了
// config.headers.Authorization = token;
// }
@ -128,7 +128,7 @@ export function getTaskUrlById(id) {
export function getRandomcode(url) {
Railsgettimes()
let anewopens=md5(newopens+newtimestamp);
return `${url}?&randomcode=${newtimestamp}&client_key=${anewopens}`
return `${url}?randomcode=${newtimestamp}&client_key=${anewopens}`
export function htmlEncode(str) {