把自测猫搬进来了

This commit is contained in:
2024-07-04 20:17:44 +08:00
parent 6b457f5aae
commit 3a53ee0846
6 changed files with 171 additions and 30 deletions

View File

@@ -3,9 +3,9 @@ import { ScreenMode } from "~/utils/constants"
export const screenMode = ref(ScreenMode.both)
export const screenSwitchLabel = computed(() => {
if (screenMode.value === ScreenMode.both) return "题目 | 代码"
if (screenMode.value === ScreenMode.both) return "题目 | 自测"
else if (screenMode.value === ScreenMode.problem) return "仅题目"
return "仅代码"
return "仅自测"
})
export function switchScreenMode() {