0👍
You’re using both Composition API and Options API here? Keep one (CAPI if possible) and after a function declaration like this
<script setup>
function doCoolStuff() {
doIt()
}
watch(variable, (currentValue, oldValue) => {
doCoolStuff()
})
</script>
The this
keyword is an Options API thing so it will not be available in CAPI (cannot be called inside of setup
).
- [Vuejs]-Vue-cropperjs is not refreshing when adding new photo
- [Vuejs]-OAuth login with Laravel 10 and VueJS 3
Source:stackexchange.com