stash
This commit is contained in:
parent
76dd805262
commit
470541d239
4 changed files with 27 additions and 13 deletions
|
@ -17,7 +17,7 @@
|
|||
import Navbar from '@/components/Navbar';
|
||||
import AddItemModal from '@/components/AddItemModal';
|
||||
import Toast from './components/Toast';
|
||||
import {mapState, mapMutations} from 'vuex';
|
||||
import {mapState, mapMutations, mapActions} from 'vuex';
|
||||
|
||||
export default {
|
||||
name: 'app',
|
||||
|
@ -30,6 +30,7 @@ export default {
|
|||
}),
|
||||
methods: {
|
||||
...mapMutations(['removeToast', 'createToast']),
|
||||
...mapActions(['loadItems', 'loadTickets']),
|
||||
openAddModal() {
|
||||
this.addModalOpen = true;
|
||||
},
|
||||
|
@ -90,14 +91,16 @@ export default {
|
|||
};
|
||||
this.notify_socket.onmessage = (e) => {
|
||||
let data = JSON.parse(e.data);
|
||||
console.log(data);
|
||||
//this.loadItems()
|
||||
this.loadTickets()
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
created: function () {
|
||||
//this.tryConnect();
|
||||
this.tryConnect();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue