Skip to content

Commit 96f8e1e

Browse files
committed
Update code
1 parent 110362c commit 96f8e1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/v2/guide/migration-vue-router.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ if (route.meta.requiresAuth) {
244244

245245
```javascript
246246
export default {
247-
// ... 其他组件选项
247+
// ...
248248
computed: {
249-
// ... 其他计算属性
250-
users () { // 此计算属性将始终是个数组
249+
// 此计算属性将始终是个数组
250+
users () { //
251251
const users = this.$route.query.users
252252
return Array.isArray(users) ? users : [users]
253253
}

0 commit comments

Comments
 (0)