add paste.

This commit is contained in:
2023-11-30 17:02:01 +08:00
parent 24f9e97962
commit a055a14b77
10 changed files with 374 additions and 346 deletions

View File

@@ -14,7 +14,9 @@ import {
uploadTestcases,
} from "../api"
const CodeEditor = defineAsyncComponent(() => import("~/shared/components/CodeEditor.vue"))
const CodeEditor = defineAsyncComponent(
() => import("~/shared/components/CodeEditor.vue"),
)
interface Props {
problemID?: string
@@ -270,7 +272,7 @@ function getTemplate() {
function filterHint() {
// 编辑器会自动添加一段 HTML
if (problem.hint === '<p><br></p>') {
if (problem.hint === "<p><br></p>") {
problem.hint = ""
}
}