代码拉取完成,页面将自动刷新
<script>
function getordefault(key, val) {
if (!localStorage.getItem(key)) {
localStorage.setItem(key, val)
return val
}
return localStorage.getItem(key)
}
(function init() {
[markdown_highlight, markdown_highlight_swap] = [markdown_highlight_swap, markdown_highlight]
const $model = (window.$model = PetiteVue.reactive({}))
$model.body = {
handle: window.location.pathname.split('/').reverse().filter(e => e.trim())[1],
theme: getordefault('theme', 'light'),
raw: {
show: false,
},
progress: {
show: false,
value: 0,
max: 0,
},
}
$model.body.theme=='light'?window.highlighter.setTheme(window.codeHighlightTheme):window.highlighter.setTheme(window.darkModeCodeHighlightTheme);
document.querySelector("html").setAttribute('v-scope', '')
document.querySelector("html").setAttribute(':data-theme', '$model.body.theme')
document.querySelector('#home').setAttribute('v-show', '$model.body.raw.show')
console.log($model)
header()
main()
PetiteVue.createApp({ $model }).mount()
document.body.style.visibility = 'visible'
})()
</script>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。