vue3+pinia使用的时候,并没有对`state`赋值,watch为什么还能监听到变化? 如果不用`mapState`,第一次也监听不到,问题就在`computed`和`mapState`,为什么会出现这种情况? //strore import { defineStore } from "pinia" const useTestStore = defineStore({ id: 'testStore', state() { return { obj: { name: '张三' } } }, }) export default useTestStore import useTestStore from "./store" export default { computed: { ...mapState(useTestStore, ['obj']) }, watch: { obj: { handler(newValue, oldValue) { //这里为什么会执行? console.log('sss', JSON.stringify(newValue), JSON.stringify(oldValue)) }, deep: true } }, }