From 2e3984fd5b4fa02b28947ebf769413d2e31e971d Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 28 Mar 2021 02:24:25 -0400 Subject: [PATCH] chore: default code for sfc playground --- packages/sfc-playground/src/store.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/sfc-playground/src/store.ts b/packages/sfc-playground/src/store.ts index f4f12202..d3a892ac 100644 --- a/packages/sfc-playground/src/store.ts +++ b/packages/sfc-playground/src/store.ts @@ -9,7 +9,23 @@ import { } from '@vue/compiler-sfc' const storeKey = 'sfc-code' -const saved = localStorage.getItem(storeKey) || '' +const saved = + localStorage.getItem(storeKey) || + ` + + + + + +`.trim() // @ts-ignore export const sandboxVueURL = import.meta.env.PROD