|
@@ -75,10 +75,10 @@ require('./../images/toast-4.png').replace(/^undefined/g, '');
|
|
|
$("#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': '../images/toast-1.png',
|
|
|
+ 'toast2': '../images/toast-2.png',
|
|
|
+ 'toast3': '../images/toast-3.png',
|
|
|
+ 'toast4': '../images/toast-4.png',
|
|
|
};
|
|
|
if (type == 'toast1' || type == 'toast2') {
|
|
|
$(name).find(".box[data-index=" + i + "] ").find(".moduleCenter").append(`<img id="toast" class="toast" src=${typeClass[type]}/>`)
|