fix comment problem
This commit is contained in:
parent
16d57ec024
commit
cca389f1b0
10 changed files with 128 additions and 545 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref, computed } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
export const useDialogStore = defineStore("dialog", () => {
|
||||
const content = ref(null);
|
||||
|
|
@ -15,5 +16,10 @@ export const useDialogStore = defineStore("dialog", () => {
|
|||
openedFile.value = newFile;
|
||||
}
|
||||
|
||||
return { content, openedFile, comments, updateFile };
|
||||
const route = useRoute();
|
||||
const isCommentsOpen = ref(
|
||||
route.query.hasOwnProperty("comments") ? true : false
|
||||
);
|
||||
|
||||
return { content, openedFile, comments, isCommentsOpen, updateFile };
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue