filter
This commit is contained in:
1 parent
3082794436
commit
67d30a6f32
4 files changed
+16
-7
No files matched your search
+6
-2
@@ -1,13 +1,17 @@
|
||||
<script setup lang="ts">
|
||||
import { useEventSource } from '@vueuse/core'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { computed, onMounted, watch } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { useStatusStore } from '@/stores/status.ts'
|
||||
import { useIssueStore } from '@/stores/issue.ts'
|
||||
import { useProjectStore } from '@/stores/project.ts'
|
||||
|
||||
const route = useRoute()
|
||||
const issueStore = useIssueStore()
|
||||
const statusStore = useStatusStore()
|
||||
const projectStore = useProjectStore()
|
||||
const { currentProjectId } = storeToRefs(projectStore)
|
||||
|
||||
interface IssueSseEvent {
|
||||
type: string
|
||||
@@ -35,7 +39,7 @@ watch(data, () => {
|
||||
data.value?.type === 'issue.updated' ||
|
||||
data.value?.type === 'issue.deleted'
|
||||
) {
|
||||
issueStore.getStat()
|
||||
issueStore.getStat(currentProjectId.value)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -46,7 +50,7 @@ const layout = computed(() => {
|
||||
|
||||
onMounted(async () => {
|
||||
await statusStore.list()
|
||||
await issueStore.getStat()
|
||||
await issueStore.getStat(currentProjectId.value)
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user