ungzip更名

master
yutent 2023-05-29 18:31:16 +08:00
parent f70bc34195
commit e6b952ca96
1 changed files with 2 additions and 2 deletions

View File

@ -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) {}
}