From 2a4faa3dd88399febe7c33416f9d53ad011af960 Mon Sep 17 00:00:00 2001 From: guxin0123 Date: Mon, 23 May 2022 18:59:59 +0800 Subject: [PATCH] Update constant.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复默认配置下loading.gif加载报错问题 --- src/controllers/constant.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/controllers/constant.js b/src/controllers/constant.js index 22c4687..9911ae1 100644 --- a/src/controllers/constant.js +++ b/src/controllers/constant.js @@ -842,7 +842,11 @@ function customLoadingConfig() { const info = _locale.info; const config = { enable: true, - image: 'image://css/loading.gif', + image: ()=>{ + return ` + + ` + }, text: info.loading, viewBox: "32 32 64 64", // 只有为path时,才会使用 imageClass: '',