浏览代码

图片显示

1178232204@qq.com 3 年之前
父节点
当前提交
64c7de115c
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/js/util.js

+ 4 - 4
src/js/util.js

@@ -75,10 +75,10 @@ function toggleWarnBox(text) {
                 $("#toast").remove()
             }
             var typeClass = {
-                'toast1': require('./../images/toast-1.png').replace(/^undefined/g, ''),
-                'toast2': require('./../images/toast-2.png').replace(/^undefined/g, ''),
-                'toast3': require('./../images/toast-3.png').replace(/^undefined/g, ''),
-                'toast4': require('./../images/toast-4.png').replace(/^undefined/g, ''),
+                toast1: require('./../images/toast-1.png').replace(/^undefined/g, ''),
+                toast2: require('./../images/toast-2.png').replace(/^undefined/g, ''),
+                toast3: require('./../images/toast-3.png').replace(/^undefined/g, ''),
+                toast4: require('./../images/toast-4.png').replace(/^undefined/g, ''),
               };
               console.log(type);
               if(type == 'toast1' || type == 'toast2'){