add testcase panel.

This commit is contained in:
2023-01-13 14:26:51 +08:00
parent 31fc880c99
commit 46fcccda35
14 changed files with 146 additions and 87 deletions

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useLoginStore } from "../store/login"
import { useSignupStore } from "../../oj/stores/signup"
import { useSignupStore } from "../../oj/store/signup"
import { useUserStore } from "../store/user"
import { logout } from "../api"

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { FormInstance } from "element-plus"
import { useSignupStore } from "../../oj/stores/signup"
import { useSignupStore } from "../../oj/store/signup"
import { login } from "../api"
import { useLoginStore } from "../store/login"
import { useUserStore } from "../store/user"

View File

@@ -46,6 +46,7 @@ onMounted(async function () {
automaticLayout: true, // 自适应布局
tabSize: 4,
fontSize: isMobile.value ? 20 : 24, // 字体大小
scrollBeyondLastLine: false,
})
model.onDidChangeContent(() => {
@@ -68,7 +69,6 @@ onMounted(async function () {
watchEffect(() => {
if (props.value !== model.getValue()) {
console.log(666)
model.setValue(props.value)
}
})

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { useSignupStore } from "../../oj/stores/signup"
import { useSignupStore } from "../../oj/store/signup"
const store = useSignupStore()
</script>

View File

@@ -46,6 +46,7 @@ onMounted(async function () {
automaticLayout: true, // 自适应布局
tabSize: 4,
fontSize: isMobile.value ? 20 : 24, // 字体大小
scrollBeyondLastLine: false,
})
model.onDidChangeContent(() => {
@@ -68,7 +69,6 @@ onMounted(async function () {
watchEffect(() => {
if (props.value !== model.getValue()) {
console.log(666)
model.setValue(props.value)
}
})