Fixed slider bug

This commit is contained in:
Sagi Frimer
2019-03-26 21:05:31 +02:00
parent 8dee0e1ba7
commit 4f64e1c5d3
3 changed files with 7 additions and 4 deletions

View File

@@ -1,15 +1,18 @@
import tornado.websocket
import json
class ChameleonWebSocket(tornado.websocket.WebSocketHandler):
def check_origin(self, origin):
return True
def open(self):
self.write_message(json.dumps(
{
'cam1':{
'pipeline':1,
'exposure':12
'pipeline': 1,
'exposure': 12
}
}
))

View File

@@ -58,7 +58,7 @@
this.openedNames = [''];
} else {
this.activeName = this.$refs.menu.currentActiveName;
this.openedNames = [this.activeName.split("-")[0]];
this.openedNames = ["/" + this.activeName.split("/")[1]];
}
this.$nextTick(function() {

View File

@@ -9,7 +9,7 @@ import locale from 'iview/dist/locale/en-US';
Vue.use(VueRouter);
Vue.use(iView , { locale });
Vue.use(VueNativeSock,'ws://'+location.hostname+':8888/websocket');
Vue.use(VueNativeSock,'ws://' + location.hostname + ':8888/websocket');
Vue.config.productionTip = false
new Vue({