💪
Size: a a a
💪
💪
computed: {
nodes() {
return this.$store.state.lers.nodes
},💪
AS
AS
A
async fetch() {
await this.$store.dispatch('user/get_friends')
},
computed: {
friend_list_computed: function () {
return this.$store.state.user.friends['friend']['users']
}
}
Как-то так оно работаетAS
nodes() {
return this.$store.state?.lers?.nodes || []
},A
AS
💪
💪
💪
A
A
A
A
💪
💪
export default async function ({ $axios, $auth, app }, inject) {
const api = new OpenAPIClientAxios({ definition: 'https://example.com/api/openapi.json' })
api.init()
const { client } = await api.getClient()
inject('api', client)
})💪
💪