chart config tweak
This commit is contained in:
@@ -214,9 +214,7 @@ watch(selected, async ()=>{
|
||||
// switch symbol
|
||||
deleteOrderShapes()
|
||||
await setSymbol(symbol)
|
||||
console.log('change symbol completed')
|
||||
}
|
||||
console.log('creating order shape', id)
|
||||
orderShapes[id] = new OrderShapes(symbol, status)
|
||||
}
|
||||
}
|
||||
@@ -228,14 +226,12 @@ function deleteOrderShapes(keepSet={}) {
|
||||
const keys = [...Object.keys(orderShapes)]
|
||||
for (const id of keys) {
|
||||
if (!(id in keepSet)) {
|
||||
console.log('deleting order shape', id)
|
||||
orderShapes[id].delete()
|
||||
delete orderShapes[id]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const orderShapes = {}
|
||||
|
||||
onUnmounted(()=>{
|
||||
|
||||
Reference in New Issue
Block a user