Compare commits

...

2 Commits

Author SHA1 Message Date
a70de90e41 fix
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-05-11 04:54:31 -06:00
1a1759518d fix 2026-05-11 04:54:23 -06:00
2 changed files with 8 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
<script lang="ts" setup>
import { editUser } from "admin/api"
import { User } from "utils/types"
import type { User } from "utils/types"
interface Props {
user: User
@@ -21,14 +21,6 @@ async function banUser() {
</script>
<template>
<n-flex>
<n-button
size="small"
type="info"
secondary
@click="$router.push({ name: 'ai', query: { username: props.user.username, duration: 'months:2' } })"
>
智能分析
</n-button>
<n-button
size="small"
type="error"

View File

@@ -206,16 +206,20 @@ onMounted(init)
}"
/>
<h2>{{ profile.user.username }}</h2>
<p class="desc">{{ profile.mood }}</p>
<n-button
v-if="userStore.isSuperAdmin"
type="info"
secondary
size="small"
@click="router.push({ name: 'ai', query: { username: profile.user.username, duration: 'months:1' } })"
@click="
router.push({
name: 'ai',
query: { username: profile.user.username, duration: 'months:6' },
})
"
>
智能分析
</n-button>
<p class="desc">{{ profile.mood }}</p>
</n-flex>
<n-grid