fix(playground): 适配 playground 0.04;可设置是否转换为 setup
This commit is contained in:
@@ -38,9 +38,9 @@ const toggle = function () {
|
||||
const onPlayground = function(){
|
||||
const foundCodes = meta.value.getElementsByClassName('language-html')
|
||||
const foundCode = foundCodes[0];
|
||||
const text = foundCode.textContent || "";
|
||||
const SourceCode = foundCode.textContent || "";
|
||||
|
||||
const { link } = usePlayGround(text)
|
||||
const { link } = usePlayGround(SourceCode, true)
|
||||
window.open(link)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user