From e6b952ca962b6bb6a2ad6cfb496ae2256a85bd5f Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 29 May 2023 18:31:16 +0800 Subject: [PATCH] =?UTF-8?q?ungzip=E6=9B=B4=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/playground/app.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/playground/app.vue b/src/pages/playground/app.vue index 7ed4518..d45c381 100644 --- a/src/pages/playground/app.vue +++ b/src/pages/playground/app.vue @@ -21,7 +21,7 @@ import CodeEditor from '@/components/code-editor.vue' import Topbar from './views/topbar.vue' import Preview from './views/preview.vue' -import { gzip, ungzip } from '@bytedo/gzip' +import { gzip, gunzip } from '@bytedo/gzip' export default { components: { Topbar, CodeEditor, Preview }, @@ -50,7 +50,7 @@ export default { let code = location.hash.slice(1) if (code) { try { - code = ungzip(code) + code = gunzip(code) code = JSON.parse(code) } catch (e) {} }