mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-05 03:21:40 +00:00
Rename to PhotonVision
This commit is contained in:
16
photon-client/src/mixins/global/dataHandleMixin.js
Normal file
16
photon-client/src/mixins/global/dataHandleMixin.js
Normal file
@@ -0,0 +1,16 @@
|
||||
export const dataHandleMixin = {
|
||||
methods: {
|
||||
handleInput(key, value) {
|
||||
let msg = this.$msgPack.encode({[key]: value});
|
||||
this.$socket.send(msg);
|
||||
},
|
||||
handleData(val) {
|
||||
this.handleInput(val, this.value[val]);
|
||||
this.$emit('update')
|
||||
},
|
||||
rollback(val, e) {
|
||||
//TODO UPDATE VALUES INTO WEBSOCKET
|
||||
this.$store.commit('updatePipeline', {[val]: e})
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user