mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 13:47:44 +00:00
🎈 perf: 不渲染时,静默下载资源
This commit is contained in:
parent
121652d431
commit
5ec9f7a6bd
1 changed files with 6 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ import {
|
|||
getPanelListOrigin,
|
||||
} from '../lib/avatar.js';
|
||||
import settings from '../lib/settings.js';
|
||||
import _ from 'lodash';
|
||||
import _, { compact } from 'lodash';
|
||||
import { rulePrefix } from '../lib/common.js';
|
||||
|
||||
export class Panel extends ZZZPlugin {
|
||||
|
|
@ -161,8 +161,11 @@ export class Panel extends ZZZPlugin {
|
|||
updatePanelData(uid, [data]);
|
||||
}
|
||||
const timer = setTimeout(() => {
|
||||
if (this?.reply) {
|
||||
this.reply('查询成功,正在下载图片资源,请稍候。');
|
||||
const msg = '查询成功,正在下载图片资源,请稍候。'
|
||||
if (this?.reply && needImg) {
|
||||
this.reply(msg);
|
||||
} else {
|
||||
logger.mark(msg)
|
||||
}
|
||||
}, 5000);
|
||||
const parsedData = formatPanelData(data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue