dev_new_shixunsrepository
杨树明 5 years ago
parent 382df87165
commit a6126fc216

@ -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) {

Loading…
Cancel
Save