<script setup lang="ts">
import { reactive, toRaw } from 'vue'
let obj = reactive({
  name: 'meowrain',
  like: 'jk'
})

let change = () => {
  console.log(obj)
  console.log(toRaw(obj)) //解除响应式
}
</script>
<template>
  <div>
    <button @click="change">change</button>
    <p>obj-{{ obj }}</p>
  </div>
</template>
<style></style>