This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
The following commit(s) were added to refs/heads/gh-pages by this push:
new 7a712e07 fix
7a712e07 is described below
commit 7a712e072680739e85a6666460de17c576aa52f0
Author: plainheart <[email protected]>
AuthorDate: Mon Nov 10 23:32:15 2025 +0800
fix
---
src/common/helper.js | 4 ++--
src/common/store.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/common/helper.js b/src/common/helper.js
index b72d8925..7dbf739d 100644
--- a/src/common/helper.js
+++ b/src/common/helper.js
@@ -123,7 +123,7 @@ export function decompressStrLZString(str) {
export function compressStrDeflate(str) {
if (!str || !(str = str.trim())) {
- return Promise.resolve();
+ return;
}
const uint8Array = fflate.deflateSync(fflate.strToU8(str), {
level: 9,
@@ -142,7 +142,7 @@ export function compressStrDeflate(str) {
export function decompressStrDeflate(str) {
if (!str || !(str = str.trim())) {
- return Promise.resolve();
+ return;
}
const uint8Array = Uint8Array.fromBase64
? Uint8Array.fromBase64(str, { alphabet: 'base64url' })
diff --git a/src/common/store.js b/src/common/store.js
index f596a7d0..d6b1e3e4 100644
--- a/src/common/store.js
+++ b/src/common/store.js
@@ -140,8 +140,8 @@ export function loadExampleCode() {
code =
URL_PARAMS.enc === 'deflate'
? decompressStrDeflate(code)
- ? URL_PARAMS.enc === 'base64'
- : decodeBase64(code)
+ : URL_PARAMS.enc === 'base64'
+ ? decodeBase64(code)
: // for backward compatibility
decompressStrLZString(code);
// not considered as shared code if it's opened by echarts website
like echarts-doc
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]