problem submission tab,

This commit is contained in:
xuyue committed 2023-04-23 11:53:47 +08:00
1 parent 387ef0999b
commit 3f7125f39f
5 files changed
+122 -19

No files matched your search

+2 -1
View File
@@ -18,6 +18,7 @@ const active = computed(() => {
const path = route.path.split("/")[1] || "problem"
return !["user", "setting"].includes(path) ? path : ""
})
const hiddenTitle = computed(() => isMobile.value && route.name === "learn")
async function handleLogout() {
await logout()
@@ -98,7 +99,7 @@ function goHome() {
<template>
<n-space justify="space-between" align="center">
<n-space align="center">
<div v-if="isDesktop" class="websiteTitle" @click="goHome">
<div v-if="!hiddenTitle" class="websiteTitle" @click="goHome">
{{ configStore.config?.website_name }}
</div>
<n-menu