bugfix: add timestamp to gui.json for caching problems
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
@@ -74,7 +74,7 @@ export default {
|
|||||||
|
|
||||||
getDirectoryRoot({ commit }, data) {
|
getDirectoryRoot({ commit }, data) {
|
||||||
if (data.files && data.files.filter((file) => file.filename === "gui.json")) {
|
if (data.files && data.files.filter((file) => file.filename === "gui.json")) {
|
||||||
fetch('http://'+store.state.socket.hostname+':'+store.state.socket.port+'/server/files/gcodes/gui.json')
|
fetch('http://'+store.state.socket.hostname+':'+store.state.socket.port+'/server/files/gcodes/gui.json?time='+Date.now())
|
||||||
.then(res => res.json()).then(file => {
|
.then(res => res.json()).then(file => {
|
||||||
commit('setSettings', file);
|
commit('setSettings', file);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user