{{ toMarried(data.married) }}
```
```javascript
function toMarried(value) {
return value ? 'Yes' : 'No'
}
```
## Vue2.7中延用Router3.x、Vuex3.x
如若不想在 `Vue2.7` 项目中更新 `Router4` 与 `Vuex4` ,可以从 `vue` 实例中获取 `Router`、`Router`、`Store`
```javascript
import { getCurrentInstance } from 'vue'
const $vm = getCurrentInstance()
const router = $vm.proxy.$router
const route = $vm.proxy.$route
const store = $vm.proxy.$store
```
---
Package: vue2-to-composition-api
E-mail: diquick@qq.com
Author: wd3322