Circuits...
Circuits Fido e Max Qta Fixed error eslint: 7.0.0 is OK
This commit is contained in:
@@ -37,7 +37,7 @@ export default defineComponent({
|
||||
|
||||
|
||||
watch(() => circuitsel.value, (newval, oldval) => {
|
||||
circuitloaded.value = circuitStore.listcircuits.find((rec: ICircuit) => rec.name === newval)
|
||||
aggiorna()
|
||||
})
|
||||
|
||||
watch(() => props.showprop, (newval, oldval) => {
|
||||
@@ -45,6 +45,11 @@ export default defineComponent({
|
||||
show.value = newval
|
||||
})
|
||||
|
||||
function aggiorna() {
|
||||
circuitloaded.value = circuitStore.listcircuits.find((rec: ICircuit) => rec.name === circuitsel.value)
|
||||
console.log('circuitStore.listcircuits', circuitStore.listcircuits, 'aggiorna', circuitloaded.value)
|
||||
}
|
||||
|
||||
function mounted() {
|
||||
|
||||
|
||||
@@ -56,7 +61,7 @@ export default defineComponent({
|
||||
circuitsel.value = bothcircuits.value[0]
|
||||
}
|
||||
|
||||
circuitloaded.value = circuitStore.listcircuits.find((rec: ICircuit) => rec.name === circuitsel.value)
|
||||
aggiorna()
|
||||
|
||||
show.value = true
|
||||
}
|
||||
@@ -78,7 +83,11 @@ export default defineComponent({
|
||||
}
|
||||
console.log('myrecsendcoin', myrecsendcoin)
|
||||
if (circuitloaded.value) {
|
||||
tools.sendCoinsByCircuit($q, circuitloaded.value, myrecsendcoin)
|
||||
tools.sendCoinsByCircuit($q, circuitloaded.value, myrecsendcoin).then((ris: any) => {
|
||||
if (ris) {
|
||||
show.value = false
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user