# set

兼容设置vue3以及vue2属性的方法 `ref.value = x`

### 使用

```ts
import { set } from '../../utils/set'
// OR in business
// import { set } from '@qdll/business'

const a = ref(0)

set(a, 1)

const obj = ref({})

set(obj, 'key', 'value')

console.log(obj.value.key) // value
```
