Closed DevRickLin closed 2 years ago
@seriouszyx @ComradeProgrammer @Resulte please review
@Nekotoxin plz review
@leo220yuyaodog @imp2002 plz review
@DevRickLin Could you help add a use example in README?
Such as a example use useCasdoor() in setup(), use Vue3 Composition API that inconvenient to use this to access vue instance.
setup() {
...
const casdoor = useCasdoor()
// use the casdoor
...
}
@DevRickLin Could you help add a use example in README?
Such as a example use useCasdoor() in setup(), use Vue3 Composition API that inconvenient to use this to access vue instance.
setup() { ... const casdoor = useCasdoor() // use the casdoor ... }
I am working on it.
@DevRickLin Could you help add a use example in README?
Such as a example use useCasdoor() in setup(), use Vue3 Composition API that inconvenient to use this to access vue instance.
setup() { ... const casdoor = useCasdoor() // use the casdoor ... }
@imp2002 I have added the example and some explanations to README.
@imp2002
LGTM
:tada: This PR is included in version 1.1.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Summary
Using
app.provide
to provide the instance ofSdk
with keyCASDOOR_INJECTION_KEY
, then encapsulateinject(CASDOOR_INJECTION_KEY)
intouseCasdoor
.Usage
Relating issue
Fix: https://github.com/casdoor/casdoor-vue-sdk/issues/9