配置文件缓存问题

develop
就眠仪式 2020-08-01 12:05:42 +08:00
parent 30e06c9c54
commit adc24eccd7
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'],
function getData() {
$.ajaxSettings.async = false;
var data = null;
$.getJSON("pear.config.json", function(result) {
$.getJSON("pear.config.json?fresh=" + Math.random(), function(result) {
data = result;
});
$.ajaxSettings.async = true;