update
This commit is contained in:
@@ -92,17 +92,11 @@ export const Tutorial = {
|
||||
async get(display: number) {
|
||||
const res = await http.get(`/tutorial/${display}`)
|
||||
return res.data
|
||||
// const res = await fetch(`/tutorial/${display}/README.md`)
|
||||
// const content = await res.text()
|
||||
// return { content }
|
||||
},
|
||||
|
||||
async listDisplay() {
|
||||
const res = await http.get("/tutorial/display")
|
||||
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]))
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user