feat: scope articles by brand
This commit is contained in:
@@ -11,8 +11,10 @@ import GeneratedArticleLinksDrawer from '@/components/GeneratedArticleLinksDrawe
|
||||
import { instantTasksApi, promptRulesApi } from '@/lib/api'
|
||||
import { formatDateTime, getGenerateStatusMeta } from '@/lib/display'
|
||||
import { formatPublishPlatformList } from '@/lib/publish-platforms'
|
||||
import { useCompanyStore } from '@/stores/company'
|
||||
|
||||
const { t } = useI18n()
|
||||
const companyStore = useCompanyStore()
|
||||
|
||||
const page = ref(1)
|
||||
const pageSize = ref(20)
|
||||
@@ -72,7 +74,8 @@ const listParams = computed<InstantTaskListParams>(() => {
|
||||
})
|
||||
|
||||
const listQuery = useQuery({
|
||||
queryKey: computed(() => ['instantTasks', 'list', listParams.value]),
|
||||
queryKey: computed(() => ['instantTasks', 'list', companyStore.currentBrandId, listParams.value]),
|
||||
enabled: computed(() => Boolean(companyStore.currentBrandId)),
|
||||
queryFn: () => instantTasksApi.list(listParams.value),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user