dev_new_shixunsrepository
tangjiang 5 years ago
parent 0914770ec0
commit d058bf152b

@ -86,17 +86,6 @@ export function initAxiosInterceptors(props) {
// 如果需要支持重复的请求考虑config里面自定义一个allowRepeat参考来控制
const requestMap = {};
<<<<<<< HEAD
window.railsgettimes = function(proxy) {
// $.ajax({url:`${proxy}/api/main/first_stamp.json`,async:false,success:function(data,status){
// if(data.status===0){
// return data.message;
// }
// }});
}
=======
>>>>>>> dev_aliyun
window.setfalseInRequestMap = function(keyName) {
requestMap[keyName] = false;
}
@ -131,12 +120,9 @@ export function initAxiosInterceptors(props) {
if(`${config[0]}`!=`true`){
let timestamp = Date.parse(new Date())/1000;
if (window.location.port === "3007") {
<<<<<<< HEAD
// let timestamp=railsgettimes(proxy);
console.log(timestamp)
=======
railsgettimes(`${proxy}/api/main/first_stamp.json`);
>>>>>>> dev_aliyun
let newopens=md5(opens+timestamp)
config.url = `${proxy}${url}`;
if (config.url.indexOf('?') == -1) {

@ -35,7 +35,12 @@ function KnowLedge (props) {
}
const handleSelectChange = (value) => {
console.log('过滤结果Start=====》》》》》', selectOptions, value);
const _result = selectOptions.filter(item => item !== value.join(''));
const _result = selectOptions.filter(item => {
if (item === value) {
}
return item !== value;
});
console.log('过滤结果=====》》》》》', _result, selectOptions);
setSelectOptions(_result);
}

Loading…
Cancel
Save