diff --git a/src/admin/api.ts b/src/admin/api.ts
index 403102c..9812223 100644
--- a/src/admin/api.ts
+++ b/src/admin/api.ts
@@ -32,6 +32,7 @@ export async function getProblemList(
keyword: string,
author?: string,
contestID?: string,
+ tagId?: number,
) {
const endpoint = !!contestID ? "admin/contest/problem" : "admin/problem"
const res = await http.get<{ results: AdminProblem[]; total: number }>(
@@ -44,6 +45,7 @@ export async function getProblemList(
keyword,
author,
contest_id: contestID,
+ tag_id: tagId,
},
},
)
diff --git a/src/admin/problem/components/TagProblemsModal.vue b/src/admin/problem/components/TagProblemsModal.vue
new file mode 100644
index 0000000..d5558ea
--- /dev/null
+++ b/src/admin/problem/components/TagProblemsModal.vue
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+ 共 {{ total }} 道题
+
+
+
+
+
+
+