Browse Source

http修改

tongshangming 2 years ago
parent
commit
db23c54bf4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      utils/http.js

+ 1 - 0
utils/http.js

@@ -62,6 +62,7 @@ methods.forEach(method => {
 		)
 
 		if (opt.isAuth) {
+			const user = useUserStore()
 			if (!user.token) {
 				// uni.navigateTo({
 				// 	url: '/pages/login/login'