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; } } }