mirror of https://gitee.com/y_project/RuoYi.git
解决IE11上传预览不显示的问题
parent
07cc5dfa51
commit
4a53b718b1
|
@ -45,6 +45,13 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!document.currentScript) {
|
||||||
|
document.currentScript = function() {
|
||||||
|
var scripts = document.getElementsByTagName('script');
|
||||||
|
return scripts[scripts.length - 1];
|
||||||
|
}();
|
||||||
|
}
|
||||||
|
|
||||||
var $h, FileInput, getLoadingUrl = function () {
|
var $h, FileInput, getLoadingUrl = function () {
|
||||||
var src = document.currentScript.src, srcPath = src.substring(0, src.lastIndexOf("/"));
|
var src = document.currentScript.src, srcPath = src.substring(0, src.lastIndexOf("/"));
|
||||||
return srcPath + '/loading.gif'
|
return srcPath + '/loading.gif'
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue