Skip to content

Commit

Permalink
responsive fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Xrondev committed Apr 1, 2024
1 parent 25992db commit e11bdc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/MainDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<div
style="height: 95%; display: flex; justify-content: center; align-items:center; flex-direction:column">
Result
<p>{{ result }}</p>
<p>{{ data }}</p>

</div>
</div>
Expand Down Expand Up @@ -87,11 +87,11 @@ store.$subscribe((mutation, state) => {
}
})
const result = ref(0)
const {data, error, send} = useRequest((url, params) => getCalculationResults(url, params), {
immediate: false,
initialData: 0
})
const calculate = () => {
console.log("calculate")
const url = store.selectedCalculation?.url
Expand All @@ -106,8 +106,8 @@ const calculate = () => {
send(url, params)
if (error.value) {
console.error(error.value)
} else {
result.value = data.value
}else{
console.log(data)
}
}
}
Expand Down

0 comments on commit e11bdc6

Please sign in to comment.