File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
docs/content/3.plugins/2.axios/1.guide Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,33 +18,33 @@ This plugin gives you useful functions which is extending the `Repository`
18
18
19
19
## Adding the plugin to your pinia ORM store
20
20
21
- You have to options here to use the plugin. Either you use ` createPiniaOrmPluginAxios (options?: PinaOrmPluginOptions)`
21
+ You have to options here to use the plugin. Either you use ` createPiniaOrmAxios (options?: PinaOrmPluginOptions)`
22
22
or you use ` pinaOrmPluginAxios ` . It depends if you want to pass options on initialization or later.
23
23
24
24
:: code-group
25
25
``` js{}[Vue3]
26
26
import { createPinia } from 'pinia'
27
27
import { createORM } from 'pinia-orm'
28
- import { createPiniaOrmPluginAxios } from '@pinia-orm/axios'
28
+ import { createPiniaOrmAxios } from '@pinia-orm/axios'
29
29
import axios from 'axios'
30
30
31
31
const pinia = createPinia()
32
32
const piniaOrm = createORM()
33
- piniaOrm().use(createPiniaOrmPluginAxios ({
33
+ piniaOrm().use(createPiniaOrmAxios ({
34
34
axios
35
35
}))
36
36
pinia.use(piniaOrm)
37
37
```
38
38
``` js{}[Vue2]
39
39
import { createPinia, PiniaVuePlugin } from 'pinia'
40
40
import { createORM } from 'pinia-orm'
41
- import { createPiniaOrmPluginAxios } from '@pinia-orm/axios'
41
+ import { createPiniaOrmAxios } from '@pinia-orm/axios'
42
42
import axios form 'axios'
43
43
44
44
Vue.use(PiniaVuePlugin)
45
45
const pinia = createPinia()
46
46
const piniaOrm = createORM()
47
- piniaOrm().use(createPiniaOrmPluginAxios ({
47
+ piniaOrm().use(createPiniaOrmAxios ({
48
48
axios
49
49
}))
50
50
pinia.use(piniaOrm)
You can’t perform that action at this time.
0 commit comments