From 6973d2701eade846c8300533cba7f211a89d3e39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 23 Mar 2021 14:41:50 +0300 Subject: [PATCH] default csb type fixed --- src/views/liveeditor/LiveEditor.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/liveeditor/LiveEditor.vue b/src/views/liveeditor/LiveEditor.vue index 5a19fe376..d28bde567 100644 --- a/src/views/liveeditor/LiveEditor.vue +++ b/src/views/liveeditor/LiveEditor.vue @@ -1,6 +1,6 @@ @@ -649,11 +649,18 @@ export const router = createRouter({ } return this.createSandboxParameters(`${name}${extension}`, _files, extDependencies); + }, + + openDefaultCSB() { + this.postSandboxParameters(this.defaultSourceType); } }, computed: { showEditor() { return this.$appState.codeSandbox; + }, + defaultSourceType() { + return this.$appState.sourceType; } } }