@@ -1,9 +0,0 @@
-import { computed } from 'vue'
-import { useStore } from 'vuex'
-
-export default () => {
- const store = useStore()
- const userInfo = computed(() => store.state.userInfo)
- return userInfo.value
-}
@@ -62,7 +62,7 @@ methods.forEach(method => {
)
if (opt.isAuth) {
- if (!store.state.token) {
+ if (!user.token) {
// uni.navigateTo({
// url: '/pages/login/login'
// })