@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<n-grid :cols="5" :x-gap="20">
|
<n-grid :cols="isDesktop ? 5: 1" :x-gap="20">
|
||||||
<n-gi :span="2">
|
<n-gi :span="2">
|
||||||
<n-flex vertical size="large">
|
<n-flex vertical size="large">
|
||||||
<n-flex align="center">
|
<n-flex align="center">
|
||||||
@@ -30,9 +30,8 @@
|
|||||||
</n-grid>
|
</n-grid>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<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 { formatISO, sub, type Duration } from "date-fns"
|
||||||
import { NButton } from "naive-ui"
|
|
||||||
import WeeklyChart from "./components/WeeklyChart.vue"
|
import WeeklyChart from "./components/WeeklyChart.vue"
|
||||||
import Details from "./components/Details.vue"
|
import Details from "./components/Details.vue"
|
||||||
import AI from "./components/AI.vue"
|
import AI from "./components/AI.vue"
|
||||||
|
|||||||
@@ -73,12 +73,12 @@ watch(isMobile, (value) => {
|
|||||||
<n-tab-pane name="content" tab="题目描述">
|
<n-tab-pane name="content" tab="题目描述">
|
||||||
<ProblemContent />
|
<ProblemContent />
|
||||||
</n-tab-pane>
|
</n-tab-pane>
|
||||||
<n-tab-pane v-if="!props.contestID" name="comment" tab="题目点评">
|
|
||||||
<ProblemComment />
|
|
||||||
</n-tab-pane>
|
|
||||||
<n-tab-pane name="info" tab="题目统计">
|
<n-tab-pane name="info" tab="题目统计">
|
||||||
<ProblemInfo />
|
<ProblemInfo />
|
||||||
</n-tab-pane>
|
</n-tab-pane>
|
||||||
|
<n-tab-pane v-if="!props.contestID" name="comment" tab="题目点评">
|
||||||
|
<ProblemComment />
|
||||||
|
</n-tab-pane>
|
||||||
<n-tab-pane name="submission" tab="我的提交">
|
<n-tab-pane name="submission" tab="我的提交">
|
||||||
<ProblemSubmission />
|
<ProblemSubmission />
|
||||||
</n-tab-pane>
|
</n-tab-pane>
|
||||||
@@ -91,12 +91,12 @@ watch(isMobile, (value) => {
|
|||||||
<n-tab-pane name="editor" tab="代码编辑">
|
<n-tab-pane name="editor" tab="代码编辑">
|
||||||
<Editor />
|
<Editor />
|
||||||
</n-tab-pane>
|
</n-tab-pane>
|
||||||
<n-tab-pane v-if="!props.contestID" name="comment" tab="题目点评">
|
|
||||||
<ProblemComment />
|
|
||||||
</n-tab-pane>
|
|
||||||
<n-tab-pane name="info" tab="题目统计">
|
<n-tab-pane name="info" tab="题目统计">
|
||||||
<ProblemInfo />
|
<ProblemInfo />
|
||||||
</n-tab-pane>
|
</n-tab-pane>
|
||||||
|
<n-tab-pane v-if="!props.contestID" name="comment" tab="题目点评">
|
||||||
|
<ProblemComment />
|
||||||
|
</n-tab-pane>
|
||||||
<n-tab-pane name="submission" tab="我的提交">
|
<n-tab-pane name="submission" tab="我的提交">
|
||||||
<ProblemSubmission />
|
<ProblemSubmission />
|
||||||
</n-tab-pane>
|
</n-tab-pane>
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ const options: Array<DropdownOption | DropdownDividerOption> = [
|
|||||||
{
|
{
|
||||||
label: "我的设置",
|
label: "我的设置",
|
||||||
key: "setting",
|
key: "setting",
|
||||||
icon: renderIcon("streamline-emojis:ferris-wheel"),
|
icon: renderIcon("streamline-emojis:musical-score"),
|
||||||
props: {
|
props: {
|
||||||
onClick: () => router.push("/setting"),
|
onClick: () => router.push("/setting"),
|
||||||
},
|
},
|
||||||
@@ -131,7 +131,7 @@ const options: Array<DropdownOption | DropdownDividerOption> = [
|
|||||||
{
|
{
|
||||||
label: "智能分析",
|
label: "智能分析",
|
||||||
key: "ai-analysis",
|
key: "ai-analysis",
|
||||||
icon: renderIcon("streamline-emojis:floppy-disk"),
|
icon: renderIcon("meteor-icons:openai"),
|
||||||
props: {
|
props: {
|
||||||
onClick: () => router.push("/ai-analysis"),
|
onClick: () => router.push("/ai-analysis"),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user