ungzip更名
parent
f70bc34195
commit
e6b952ca96
|
@ -21,7 +21,7 @@ import CodeEditor from '@/components/code-editor.vue'
|
||||||
import Topbar from './views/topbar.vue'
|
import Topbar from './views/topbar.vue'
|
||||||
import Preview from './views/preview.vue'
|
import Preview from './views/preview.vue'
|
||||||
|
|
||||||
import { gzip, ungzip } from '@bytedo/gzip'
|
import { gzip, gunzip } from '@bytedo/gzip'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { Topbar, CodeEditor, Preview },
|
components: { Topbar, CodeEditor, Preview },
|
||||||
|
@ -50,7 +50,7 @@ export default {
|
||||||
let code = location.hash.slice(1)
|
let code = location.hash.slice(1)
|
||||||
if (code) {
|
if (code) {
|
||||||
try {
|
try {
|
||||||
code = ungzip(code)
|
code = gunzip(code)
|
||||||
code = JSON.parse(code)
|
code = JSON.parse(code)
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue