Post & Comment Editors

This commit is contained in:
2024-03-07 22:41:00 +08:00
parent f9438b4d89
commit 3300e46e88
16 changed files with 335 additions and 153 deletions

View File

@@ -1,11 +1,20 @@
import { defineStore } from "pinia";
import { reactive, ref } from "vue";
import { defineStore } from "pinia"
import { reactive, ref } from "vue"
export const useEditor = defineStore("editor", () => {
const done = ref(false)
const show = reactive({
moment: false,
article: false,
});
comment: false
})
return { show };
});
const related = reactive<{ comment_to: any; reply_to: any; repost_to: any }>({
comment_to: null,
reply_to: null,
repost_to: null
})
return { show, related, done }
})