bugfix: add timestamp to gui.json for caching problems
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
parent
7a75f6f6cc
commit
707330e501
@ -74,7 +74,7 @@ export default {
|
||||
|
||||
getDirectoryRoot({ commit }, data) {
|
||||
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 => {
|
||||
commit('setSettings', file);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user