clientHeight - 12 && router.route === '/') || scrollS < 300 // 透明导航条的条件 if (header && navTransparent) { nav && nav.classList.replace('bg-white', 'bg-none') nav && nav.classList.replace('text-black', 'text-white') nav && nav.classList.replace('border', 'border-...
const router = useRouter() const [Layout, setLayout] = useState(DefaultLayout) // 切换主题 useEffect(() => { const loadLayout = async () => { const newLayout = await dynamic(() => import(`@/themes/${theme}/${layout}`)) setLayout(newLayout) } loadLayout() }, [theme]) // 文...
1. When the library is initialized, press Enter to move to the Password screen. Figure 1. Library ready screen 2. Press the UP and DOWN arrow keys to change the current digit. Press the Enter key to advance to the next digit. The default password is 0000. When you are logged in, ...
const router = createRouter({history: createWebHashHistory(), routes })exportdefault router // src\main.ts import { createApp } from'vue'import router from'./router'import App from'./App.vue'createApp(App).use(router).mount('#app') 404 未找到 { path:'/:pathMatch(.*)*', name:'N...
const { post, lock, validPassword } = props @@ -76,6 +77,9 @@ export const LayoutSlug = props => { {/* 分享 */} <ShareBar post={post} /> {/* 评论互动 */} <Comment frontMatter={post} /> 4 changes: 3 additions & 1 deletion 4 themes/matery/LayoutSlug.js Original fil...
PASSWORD_ERROR: 'Password Error!', ARTICLE_LOCK_TIPS: 'Please Enter the password:', NO_RESULTS_FOUND: 'No results found.', SUBMIT: 'Submit', POST_TIME: 'Post on', LAST_EDITED_TIME: 'Last edited', @@ -52,8 +53,8 @@ export default { ANNOUNCEMENT: 'Announcement', START_READING: ...
export default function Category(props) { const { locale } = useGlobal() const { siteInfo, Layout } = props const { siteInfo } = props // 根据页面路径加载不同Layout文件 const Layout = getLayoutByTheme(useRouter()) const meta = { title: `${locale.COMMON.CATEGORY} | ${siteInfo?.tit...