This commit is contained in:
2025-04-27 19:06:56 +08:00
parent ea1b114dd2
commit d7f33bfca2
2 changed files with 1 additions and 7 deletions

View File

@@ -92,17 +92,11 @@ export const Tutorial = {
async get(display: number) { async get(display: number) {
const res = await http.get(`/tutorial/${display}`) const res = await http.get(`/tutorial/${display}`)
return res.data return res.data
// const res = await fetch(`/tutorial/${display}/README.md`)
// const content = await res.text()
// return { content }
}, },
async listDisplay() { async listDisplay() {
const res = await http.get("/tutorial/display") const res = await http.get("/tutorial/display")
return res.data return res.data
// const res = await fetch("/tutorial/README.md")
// const text = await res.text()
// return text.split("\n").map((item) => Number(item.split(" ")[0]))
}, },
} }

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted, defineProps, useTemplateRef } from "vue" import { onMounted, useTemplateRef } from "vue"
import { Submission } from "../api" import { Submission } from "../api"
import type { SubmissionAll } from "../utils/type" import type { SubmissionAll } from "../utils/type"