From 793f02645dce834f5f0610b3977043941b904e6c Mon Sep 17 00:00:00 2001 From: MeloAlright Date: Sat, 22 Jul 2023 13:11:31 +0800 Subject: [PATCH] Update README.md of vue-playground --- vue-playground/README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/vue-playground/README.md b/vue-playground/README.md index 0f9534d..7112d24 100644 --- a/vue-playground/README.md +++ b/vue-playground/README.md @@ -9,3 +9,35 @@ npm install ``` npm run serve ``` + +### How to debug the vue syntax code in playground + +`App.vue` + +```diff + data() { + return { + CustomLayout: markRaw(CustomLayout), + loading: true, + count: 2, + VSurface, + VRect, + VCircle, + VRoundRect, + VLine, + VPoints, + code, + LoadingCode, +- debug: false, ++ debug: true, + error: undefined, + }; + }, +``` + +### How to debug the wasm in vue-playgrounnd + +```shell +$ rm -rf {YOUR_PROJECT_WORK_SPACE}/vue-playground/node_modules/vue-skia/soft-skia-wasm/pkg +$ ln -s {YOUR_PROJECT_WORK_SPACE}/soft-skia-wasm/pkg {YOUR_PROJECT_WORK_SPACE}/vue-playground/node_modules/vue-skia/soft-skia-wasm/pkg +```