update UI
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2025-09-24 21:00:55 +08:00
parent de47e761ec
commit f428291698
3 changed files with 10 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
<template>
<n-grid :cols="5" :x-gap="20">
<n-grid :cols="isDesktop ? 5: 1" :x-gap="20">
<n-gi :span="2">
<n-flex vertical size="large">
<n-flex align="center">
@@ -30,9 +30,8 @@
</n-grid>
</template>
<script setup lang="ts">
import { ref, computed, watch } from "vue"
import { isDesktop } from "~/shared/composables/breakpoints"
import { formatISO, sub, type Duration } from "date-fns"
import { NButton } from "naive-ui"
import WeeklyChart from "./components/WeeklyChart.vue"
import Details from "./components/Details.vue"
import AI from "./components/AI.vue"

View File

@@ -73,12 +73,12 @@ watch(isMobile, (value) => {
<n-tab-pane name="content" tab="题目描述">
<ProblemContent />
</n-tab-pane>
<n-tab-pane v-if="!props.contestID" name="comment" tab="题目点评">
<ProblemComment />
</n-tab-pane>
<n-tab-pane name="info" tab="题目统计">
<ProblemInfo />
</n-tab-pane>
<n-tab-pane v-if="!props.contestID" name="comment" tab="题目点评">
<ProblemComment />
</n-tab-pane>
<n-tab-pane name="submission" tab="我的提交">
<ProblemSubmission />
</n-tab-pane>
@@ -91,12 +91,12 @@ watch(isMobile, (value) => {
<n-tab-pane name="editor" tab="代码编辑">
<Editor />
</n-tab-pane>
<n-tab-pane v-if="!props.contestID" name="comment" tab="题目点评">
<ProblemComment />
</n-tab-pane>
<n-tab-pane name="info" tab="题目统计">
<ProblemInfo />
</n-tab-pane>
<n-tab-pane v-if="!props.contestID" name="comment" tab="题目点评">
<ProblemComment />
</n-tab-pane>
<n-tab-pane name="submission" tab="我的提交">
<ProblemSubmission />
</n-tab-pane>

View File

@@ -123,7 +123,7 @@ const options: Array<DropdownOption | DropdownDividerOption> = [
{
label: "我的设置",
key: "setting",
icon: renderIcon("streamline-emojis:ferris-wheel"),
icon: renderIcon("streamline-emojis:musical-score"),
props: {
onClick: () => router.push("/setting"),
},
@@ -131,7 +131,7 @@ const options: Array<DropdownOption | DropdownDividerOption> = [
{
label: "智能分析",
key: "ai-analysis",
icon: renderIcon("streamline-emojis:floppy-disk"),
icon: renderIcon("meteor-icons:openai"),
props: {
onClick: () => router.push("/ai-analysis"),
},