update
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-05-25 07:01:07 -06:00
parent 873b7c875b
commit 8e2fcceb8f
5 changed files with 47 additions and 46 deletions

View File

@@ -0,0 +1,18 @@
import { defineStore } from "pinia"
export const useMyFlowchartStore = defineStore("myFlowchart", () => {
const showing = ref(false)
const mermaidCode = ref("")
function show(code: string) {
mermaidCode.value = code
showing.value = true
}
function hide() {
showing.value = false
mermaidCode.value = ""
}
return { showing, mermaidCode, show, hide }
})