Closed
Description
Version
3.0.7
Reproduction link
https://codesandbox.io/s/eloquent-antonelli-xr3fb?file=/src/App.vue
Steps to reproduce
<template>
<button @click="test">...</button>
</template>
<script setup>
ref: x = 1
function test() {
const x = { value: 2 }
console.log(x) //will show 1, should show 2
}
</script>
What is expected?
show 2
What is actually happening?
show 1