diff --git a/src/oj/flowchart/index.vue b/src/oj/flowchart/index.vue new file mode 100644 index 0000000..cd8329d --- /dev/null +++ b/src/oj/flowchart/index.vue @@ -0,0 +1,7 @@ + + + diff --git a/src/oj/problem/components/Form.vue b/src/oj/problem/components/Form.vue index 4c135f2..f654977 100644 --- a/src/oj/problem/components/Form.vue +++ b/src/oj/problem/components/Form.vue @@ -72,19 +72,17 @@ const menu = computed(() => [ { label: "重置代码", key: "reset" }, ]) -const languageOptions: DropdownOption[] = languages.value.map( - (it) => ({ - label: () => - h(NFlex, { align: "center" }, () => [ - h(Icon, { - icon: ICON_SET[it], - width: 16, - }), - LANGUAGE_SHOW_VALUE[it], - ]), - value: it, - }), -) +const languageOptions: DropdownOption[] = languages.value.map((it) => ({ + label: () => + h(NFlex, { align: "center" }, () => [ + h(Icon, { + icon: ICON_SET[it], + width: 16, + }), + LANGUAGE_SHOW_VALUE[it], + ]), + value: it, +})) const copy = async () => { const success = await copyToClipboard(codeStore.code.value) diff --git a/src/oj/problem/components/ProblemEditor.vue b/src/oj/problem/components/ProblemEditor.vue index 58ccc47..e69c03d 100644 --- a/src/oj/problem/components/ProblemEditor.vue +++ b/src/oj/problem/components/ProblemEditor.vue @@ -81,7 +81,7 @@ const handleSyncStatusChange = (status: { } // 提供FlowchartEditor的ref给子组件 -provide('flowchartEditorRef', flowchartEditorRef) +provide("flowchartEditorRef", flowchartEditorRef)