diff --git a/frontend/src/app/submit/page.tsx b/frontend/src/app/submit/page.tsx index f920bd0..7d258e4 100644 --- a/frontend/src/app/submit/page.tsx +++ b/frontend/src/app/submit/page.tsx @@ -3,7 +3,7 @@ import React, { useEffect, useState } from "react"; import { fetchAPI } from "@/shared/rpc/common-function"; import { useSharedStore } from "@/shared/store/share"; -type SubType = "mcp" | "skill" | "plugin"; +type SubType = "mcp"; type SubRecord = { id: string; @@ -16,8 +16,6 @@ type SubRecord = { const TYPE_LABEL: Record = { mcp: "MCP 服务", - skill: "AI 技能", - plugin: "AI 插件", }; const STATUS_LABEL: Record = { @@ -30,7 +28,7 @@ export default function SubmitPage() { // 网页登录态存在 zustand store(XPack_Shared),localStorage["user_token"] 只有扩展侧栏才会写, // 用 store 判断才不会把已登录用户误判为未登录 const user_token = useSharedStore((s: any) => s.user_token); - const [type, setType] = useState("mcp"); + const type: SubType = "mcp"; const [name, setName] = useState(""); const [desc, setDesc] = useState(""); const [file, setFile] = useState(null); @@ -121,16 +119,10 @@ export default function SubmitPage() { return (
-

上传 MCP / Skill / Plugin

+

上传 MCP 服务

- - setName(e.target.value)} placeholder="名称" className={inputCls} required />