Open GongJS opened 1 year ago
this is my code:
<button @click="changeCode">change</button> <Codemirror v-model="code" :indent-with-tab="true" :tab-size="2" @ready="handleReady" /> const code = ref('{}') const state = ref() const handleReady = (payload) => { state.value = payload.state console.log( state.value.doc) } const changeCode = () => { code.value = '{"a": "1"}' console.log(state.value.doc) // state.value.doc dose not change } ### Reproduction if need, i will provide ### System Info ```shell "vue-codemirror": "^6.1.1"
pnpm
Describe the bug
this is my code:
Used Package Manager
pnpm
Validations