Skip to content

Commit 0f70216

Browse files
committed
2 parents 2dd37ec + d46043a commit 0f70216

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/common-patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,9 @@ The `feathers` middleware will redirect any user in a non public page to the log
550550
export default function ({ store, redirect, route }) {
551551
const { auth } = store.state
552552
if (auth.publicPages.length > 0 && !auth.publicPages.includes(route.name) && !auth.payload) {
553-
return redirect('login')
553+
return redirect('/login')
554554
} else if (auth.publicPages.length > 0 && auth.publicPages.includes(route.name) && auth.payload) {
555-
return redirect('feed')
555+
return redirect('/feed')
556556
}
557557
}
558558
```

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export default makeAuthPlugin({ userService: 'users' })
223223
This example uses Webpack's `require.context` feature. If you're not using Webpack, you'll need to manually import each module and list them in the `plugins` array.
224224

225225
```js
226-
// src/store/store.js
226+
// src/store/index.js
227227
import Vue from 'vue'
228228
import Vuex from 'vuex'
229229
import { FeathersVuex } from '../feathers-client'

src/useFind.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default function find(options: UseFindOptions): UseFindData {
9797
items: computed<any[]>(() => {
9898
const getterParams = unwrapParams(params)
9999

100-
if (getterParams.paginate) {
100+
if (getterParams && getterParams.paginate) {
101101
const serviceState = model.store.state[model.servicePath]
102102
const { defaultSkip, defaultLimit } = serviceState.pagination
103103
const skip = getterParams.query.$skip || defaultSkip

0 commit comments

Comments
 (0)