Created
September 29, 2021 06:41
-
-
Save z1076/df4b3890b80b8eec2639f7aac35a0cf4 to your computer and use it in GitHub Desktop.
[gin-vue-admin] #auth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { store } from '@/store/index' | |
const userInfo = store.getters['user/userInfo'] | |
userInfo.authorityId | |
import { mapGetters } from "vuex"; | |
computed: { | |
...mapGetters("user", ["userInfo", "token"]), | |
}, | |
this.userInfo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment