Is there a way to change the initial data of a computed property? When I tried to change the data with an input tag, the vue gave me a warning like Write operation failed: computed property "searchField" is readonly. In case you wonder why I make this simple case with a computed rather than the data property, it is just for simplicity in the forum. There is a reason why I make it with the computed one. Here is the code.
<template>
<input type="text" v-model="searchField" />
</template>
<script>
export default {
computed: {
searchField() {
return "";
}
}
};
</script>