0👍
Just remove await
from the top level of the <script>
:
<script setup>
import {onMounted, reactive} from 'vue';
const a = reactive({});
onMounted(async () => {
Object.assign(a, await Setup());
});
</script>
- [Vuejs]-Reactive value not updating based on dependent value
- [Vuejs]-How to make an anchor element trigger a javascript function on left click, but open a new page on middle click?
Source:stackexchange.com