some code cleaning trying to resolve thematique not loading on prod
This commit is contained in:
@ -119,7 +119,7 @@ import router from 'vuejs/route'
|
||||
import store from 'vuejs/store'
|
||||
|
||||
// import JSONAPI from 'vuejs/api/json-axios'
|
||||
import REST from 'vuejs/api/rest-axios'
|
||||
// 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'
|
||||
|
@ -26,11 +26,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import router from 'vuejs/route'
|
||||
// import router from 'vuejs/route'
|
||||
import store from 'vuejs/store'
|
||||
|
||||
// import JSONAPI from 'vuejs/api/json-axios'
|
||||
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'
|
||||
@ -40,11 +38,11 @@ import thematiqueFields from 'vuejs/api/gql/thematique.fragment.gql'
|
||||
// import qs from 'querystring-es3'
|
||||
import Card from 'vuejs/components/Content/Card'
|
||||
|
||||
import { mapState, mapActions } from 'vuex'
|
||||
// import { mapState, mapActions } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: "Thematique",
|
||||
router,
|
||||
// router,
|
||||
store,
|
||||
data(){
|
||||
return {
|
||||
@ -105,7 +103,7 @@ export default {
|
||||
}
|
||||
${thematiqueFields}
|
||||
`
|
||||
// ?XDEBUG_SESSION_START=1
|
||||
|
||||
MGQ.post('', { query: print(ast)
|
||||
})
|
||||
.then(({ data:{data:{thematique}}}) => {
|
||||
|
Reference in New Issue
Block a user