use composables.

This commit is contained in:
xuyue committed 2023-01-13 23:20:36 +08:00
1 parent d45783334d
commit d3caa5438d
15 files changed
+2360 -72

No files matched your search

+2 -2
View File
@@ -1,10 +1,10 @@
<script lang="ts" setup>
import { TabsPaneContext } from "element-plus"
import { SOURCES } from "utils/constants"
import { Problem } from "utils/types"
import Monaco from "~/shared/Monaco/index.vue"
import { useCodeStore } from "oj/store/code"
import { submissionExists } from "oj/api"
import { TabsPaneContext } from "element-plus"
import SubmitPanel from "./SubmitPanel.vue"
import TestcasePanel from "./TestcasePanel.vue"
@@ -68,8 +68,8 @@ function onTab(pane: TabsPaneContext) {
class="editor"
:language="code.language"
:value="code.value"
height="calc(100vh - 621px)"
@change="change"
height="calc(100vh - 621px)"
/>
<el-tabs type="border-card" @tab-click="onTab" v-model="tab">
<TestcasePanel />