feat: 为前端请求添加Status控制
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m6s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m6s
- 在产品页/解决方案页等路由仅获取已发布条目
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
query GetDocumentList($locale: String!) {
|
||||
product_documents {
|
||||
product_documents(filter: { status: { _eq: "published" } }) {
|
||||
id
|
||||
file {
|
||||
id
|
||||
|
||||
@ -37,7 +37,7 @@ query GetProduct($id: ID!, $locale: String!) {
|
||||
}
|
||||
faqs {
|
||||
id
|
||||
questions_id {
|
||||
questions_id(filter: { status: { _eq: "published" } }) {
|
||||
id
|
||||
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
|
||||
id
|
||||
@ -48,7 +48,7 @@ query GetProduct($id: ID!, $locale: String!) {
|
||||
}
|
||||
documents {
|
||||
id
|
||||
product_documents_id {
|
||||
product_documents_id(filter: { status: { _eq: "published" } }) {
|
||||
id
|
||||
file {
|
||||
id
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
query GetQuestionList($locale: String!) {
|
||||
questions {
|
||||
questions(filter: { status: { _eq: "published" } }) {
|
||||
id
|
||||
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
|
||||
id
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
query GetSolutionList($locale: String!) {
|
||||
solutions {
|
||||
solutions(filter: { status: { _eq: "published" } }) {
|
||||
id
|
||||
cover {
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user