askbot-dragon 1.8.29-beta → 1.8.30-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -281,8 +281,11 @@ export default {
|
|
|
281
281
|
// 没有图片,直接显示内容
|
|
282
282
|
this.fileText = htmlContent;
|
|
283
283
|
this.loading = false;
|
|
284
|
-
document.getElementById('drawer_content_pre').style.backgroundImage = 'none';
|
|
285
284
|
this.$nextTick(() => {
|
|
285
|
+
let dom = document.getElementById('drawer_content_pre');
|
|
286
|
+
if (dom){
|
|
287
|
+
dom.style.backgroundImage = 'none';
|
|
288
|
+
}
|
|
286
289
|
this.setColor()
|
|
287
290
|
})
|
|
288
291
|
this.$emit('loadingSuccess');
|
|
@@ -304,8 +307,11 @@ export default {
|
|
|
304
307
|
if (processedCount === totalImages) {
|
|
305
308
|
this.fileText = tempDiv.innerHTML;
|
|
306
309
|
this.loading = false;
|
|
307
|
-
document.getElementById('drawer_content_pre').style.backgroundImage = 'none';
|
|
308
310
|
this.$nextTick(() => {
|
|
311
|
+
let dom = document.getElementById('drawer_content_pre');
|
|
312
|
+
if (dom){
|
|
313
|
+
dom.style.backgroundImage = 'none';
|
|
314
|
+
}
|
|
309
315
|
this.setColor()
|
|
310
316
|
})
|
|
311
317
|
this.$emit('loadingSuccess');
|
|
@@ -317,8 +323,11 @@ export default {
|
|
|
317
323
|
if (processedCount === totalImages) {
|
|
318
324
|
this.fileText = tempDiv.innerHTML;
|
|
319
325
|
this.loading = false;
|
|
320
|
-
document.getElementById('drawer_content_pre').style.backgroundImage = 'none';
|
|
321
326
|
this.$nextTick(() => {
|
|
327
|
+
let dom = document.getElementById('drawer_content_pre');
|
|
328
|
+
if (dom){
|
|
329
|
+
dom.style.backgroundImage = 'none';
|
|
330
|
+
}
|
|
322
331
|
this.setColor()
|
|
323
332
|
})
|
|
324
333
|
this.$emit('loadingSuccess');
|