You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<scriptsetuplang="ts">// use functionconst function = () => {console.log('Hello World!')}// use propsconst props =defineProps({title})</script>
Using with Store
<scriptsetuplang="ts">import { storeToRefs } from'pinia';importuseDataStorefrom'@store/useDataStore';// use storeconst store =useDataStore();// use store stateconst { data } =storeToRefs(store);// use store functionstore.getData()</script>