添加代码格式化

This commit is contained in:
xuyue committed 2025-07-15 13:08:20 +08:00
1 parent 616bb2bfec
commit 2ad2a971c0
5 files changed
+80 -35

No files matched your search

+3 -7
View File
@@ -4,12 +4,7 @@
打开{{ TASK_LABEL[taskTab] }}
</n-button>
<template v-if="user.loaded && authed">
<n-button
quaternary
@click="$router.push({ name: 'submissions', params: { page: 1 } })"
>
所有提交
</n-button>
<n-button quaternary @click="emit('format')">整理</n-button>
<n-button
type="primary"
secondary
@@ -17,7 +12,7 @@
:loading="submitLoading"
@click="submit"
>
提交代码
提交
</n-button>
<n-dropdown :options="menu" @select="clickMenu">
<n-button>{{ user.username }}</n-button>
@@ -48,6 +43,7 @@ import { router } from "../router"
import { ADMIN_URL, TASK_LABEL } from "../utils/const"
const message = useMessage()
const emit = defineEmits(["format"])
const submitLoading = ref(false)