Deletion

This commit is contained in:
2024-03-11 23:03:07 +08:00
parent 7b2a6c3709
commit f5ebc1748a
9 changed files with 115 additions and 21 deletions

View File

@ -1,5 +1,6 @@
import { defineStore } from "pinia"
import { reactive, ref } from "vue"
import { getAtk } from "@/stores/userinfo"
export const useEditor = defineStore("editor", () => {
const done = ref(false)
@ -7,14 +8,22 @@ export const useEditor = defineStore("editor", () => {
const show = reactive({
moment: false,
article: false,
comment: false
comment: false,
delete: false
})
const related = reactive<{ edit_to: any; comment_to: any; reply_to: any; repost_to: any }>({
const related = reactive<{
edit_to: any
comment_to: any
reply_to: any
repost_to: any
delete_to: any
}>({
edit_to: null,
comment_to: null,
reply_to: null,
repost_to: null
repost_to: null,
delete_to: null
})
return { show, related, done }