fixed gql api file: ->url() replaced by ->createFileUrl()
This commit is contained in:
@@ -305,7 +305,7 @@ import REST from 'vuejs/api/rest-axios'
|
||||
import MGQ from 'vuejs/api/graphql-axios'
|
||||
import { print } from 'graphql/language/printer'
|
||||
import gql from 'graphql-tag'
|
||||
import materiauFields from 'vuejs/api/gql/materiaumodal.fragment.gql'
|
||||
import materiauModalFields from 'vuejs/api/gql/materiaumodal.fragment.gql'
|
||||
|
||||
const prettyBytes = require('pretty-bytes')
|
||||
|
||||
@@ -404,10 +404,10 @@ export default {
|
||||
this.loading = true
|
||||
const ast = gql`{
|
||||
materiau(id: ${this.item.id}, lang: "${drupalDecoupled.lang_code}") {
|
||||
...MateriauFields
|
||||
...MateriauModalFields
|
||||
}
|
||||
}
|
||||
${materiauFields}
|
||||
${materiauModalFields}
|
||||
`
|
||||
MGQ.post('', { query: print(ast)
|
||||
})
|
||||
|
Reference in New Issue
Block a user