diff --git a/index.html b/index.html
index 13cb8f6..f8d058e 100644
--- a/index.html
+++ b/index.html
@@ -5,24 +5,8 @@
OJ
-
-
+
diff --git a/src/oj/problem/components/Form.vue b/src/oj/problem/components/Form.vue
index c46d0df..12262db 100644
--- a/src/oj/problem/components/Form.vue
+++ b/src/oj/problem/components/Form.vue
@@ -31,8 +31,9 @@ function goTestCat() {
window.open(data.href, "_blank")
}
-function edit() {
- router.push("/admin/problem/edit/" + props.problem.id)
+function goEdit() {
+ const data = router.resolve("/admin/problem/edit/" + props.problem.id)
+ window.open(data.href, "_blank")
}
const menu: DropdownOption[] = [
@@ -99,7 +100,7 @@ function select(key: string) {
重置
提交信息
自测猫
-
+
编辑
diff --git a/src/oj/problem/components/ProblemContent.vue b/src/oj/problem/components/ProblemContent.vue
index c79b3f7..4618303 100644
--- a/src/oj/problem/components/ProblemContent.vue
+++ b/src/oj/problem/components/ProblemContent.vue
@@ -96,7 +96,10 @@ function type(status: ProblemStatus) {
title="🎉 本 题 已 经 被 你 解 决 啦"
/>
- {{ problem.title }}
+
+ {{ problem._id }}
+ {{ problem.title }}
+
描述