mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-22 01:11:40 +00:00
Fixed slider bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
))
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user