Skip to content
Snippets Groups Projects
Commit ccebbd59 authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

prevent inout vue to requery

parent 57c1830f
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
<script> <script>
import gql from 'graphql-tag' import gql from 'graphql-tag'
const today = Math.round(Date.now() /1000)
export default { export default {
data() { data() {
// Variables locales // Variables locales
...@@ -32,8 +34,7 @@ export default { ...@@ -32,8 +34,7 @@ export default {
text: 'Entrées et sorties', text: 'Entrées et sorties',
active: true active: true
} }
], ]
today : Math.round(Date.now() /1000)
} }
}, },
// Fonctions locales // Fonctions locales
...@@ -59,7 +60,7 @@ export default { ...@@ -59,7 +60,7 @@ export default {
} }
} }
} `, } `,
variables(){return {start:this.today-86400*2,end:this.today}}, variables(){return {start:today-86400*2,end:today}},
update (data) { update (data) {
let result = {'entrees':[],'sorties':[]} let result = {'entrees':[],'sorties':[]}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment