1178232204@qq.com 3 лет назад
Родитель
Сommit
117bd501ae
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      src/js/util.js

+ 5 - 4
src/js/util.js

@@ -1,3 +1,7 @@
+require('../images/toast-1.png').replace(/^undefined/g, '');
+require('../images/toast-2.png').replace(/^undefined/g, '');
+require('../images/toast-3.png').replace(/^undefined/g, '');
+require('../images/toast-4.png').replace(/^undefined/g, '');
 const transConf = function (arr) {
     window.arr = arr;
     // var arr = [
@@ -57,10 +61,7 @@ function toggleWarnBox(text) {
         $(".warning-box").hide();
     }
 }
-require('../images/toast-1.png').replace(/^undefined/g, '');
-require('../images/toast-2.png').replace(/^undefined/g, '');
-require('../images/toast-3.png').replace(/^undefined/g, '');
-require('../images/toast-4.png').replace(/^undefined/g, '');
+
 (function () {
     $.extend({
         /****