refactor: 移除佣金比例字段,将developer统一为admin

This commit is contained in:
2026-05-01 08:08:11 +08:00
parent c5d1dc4b04
commit 4ed00f29e2
235 changed files with 9082 additions and 8952 deletions
@@ -36,7 +36,7 @@ async function fetchApplications() {
async function handleSubmit() {
if (!form.value.developer_id) {
toast.error('请输入开发者ID')
toast.error('请输入管理员ID')
return
}
if (!form.value.application_id) {
@@ -63,7 +63,7 @@ async function handleSubmit() {
const data = await response.json()
if (data.code === 200) {
toast.success('申请已提交')
router.push('/developer/agent-apps')
router.push('/admin/agent-apps')
}
else {
toast.error(data.message || '提交申请失败')
@@ -79,7 +79,7 @@ async function handleSubmit() {
}
function goBack() {
router.push('/developer/agent-apps')
router.push('/admin/agent-apps')
}
onMounted(() => {
@@ -90,7 +90,7 @@ onMounted(() => {
<template>
<BasicPage
title="申请授权"
description="向开发者申请应用授权"
description="向管理员申请应用授权"
>
<template #actions>
<UiButton variant="outline" @click="goBack">
@@ -104,22 +104,22 @@ onMounted(() => {
<UiCardHeader>
<UiCardTitle>申请信息</UiCardTitle>
<UiCardDescription>
填写以下信息向开发者申请应用授权
填写以下信息向管理员申请应用授权
</UiCardDescription>
</UiCardHeader>
<UiCardContent class="space-y-6">
<div class="space-y-2">
<UiLabel for="developer_id">
开发者ID
管理员ID
</UiLabel>
<UiInput
id="developer_id"
v-model="form.developer_id"
type="number"
placeholder="请输入开发者ID"
placeholder="请输入管理员ID"
/>
<p class="text-xs text-muted-foreground">
请向开发者索取其ID
请向管理员索取其ID
</p>
</div>