dev_tpm_ui
杨树明 5 years ago
parent be6021a689
commit b45d0538c8

@ -41,7 +41,7 @@ if (isDev) {
//ebugType="teacher";
// 学生
//debugType="student";
window.railsgettimes = function(proxy) {
function railsgettimes(proxy) {
if(timestamp&&checkSubmitFlg===false){
$.ajax({url:proxy,async:false,success:function(data){
if(data.status===0){
@ -130,6 +130,7 @@ export function initAxiosInterceptors(props) {
} else {
// 加api前缀
railsgettimes(`/api/main/first_stamp.json`);
let newopens=md5(opens+timestamp)
config.url = url;
if (config.url.indexOf('?') == -1) {
config.url = `${config.url}?&randomcode=${timestamp}&client_key=${newopens}`;

Loading…
Cancel
Save