✨ Post & Comment Editors
This commit is contained in:
@@ -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 }
|
||||
})
|
||||
|
Reference in New Issue
Block a user