chore(sandbox): 自动格式化代码

This commit is contained in:
sight
2022-04-09 16:06:39 +08:00
parent ca2ff33119
commit 9826517d91
3 changed files with 56 additions and 6 deletions

View File

@@ -47,12 +47,12 @@ const toggle = function () {
show.value = !show.value;
};
const onPlayground = function () {
const onPlayground = async function () {
const foundCodes = meta.value.getElementsByClassName("language-html");
const foundCode = foundCodes[0];
const SourceCode = foundCode.textContent || "";
const { link } = usePlayGround(SourceCode, true);
const { link } = await usePlayGround(SourceCode, true);
window.open(link);
};