fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { editUser } from "admin/api"
|
import { editUser } from "admin/api"
|
||||||
import { User } from "utils/types"
|
import type { User } from "utils/types"
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
user: User
|
user: User
|
||||||
@@ -21,14 +21,6 @@ async function banUser() {
|
|||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<n-flex>
|
<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
|
<n-button
|
||||||
size="small"
|
size="small"
|
||||||
type="error"
|
type="error"
|
||||||
|
|||||||
@@ -206,16 +206,21 @@ onMounted(init)
|
|||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
<h2>{{ profile.user.username }}</h2>
|
<h2>{{ profile.user.username }}</h2>
|
||||||
|
<p class="desc">{{ profile.mood }}</p>
|
||||||
<n-button
|
<n-button
|
||||||
v-if="userStore.isSuperAdmin"
|
v-if="userStore.isSuperAdmin"
|
||||||
type="info"
|
type="info"
|
||||||
secondary
|
secondary
|
||||||
size="small"
|
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>
|
</n-button>
|
||||||
<p class="desc">{{ profile.mood }}</p>
|
|
||||||
</n-flex>
|
</n-flex>
|
||||||
|
|
||||||
<n-grid
|
<n-grid
|
||||||
|
|||||||
Reference in New Issue
Block a user