Explorar o código

缓存token调整

wangtao %!s(int64=2) %!d(string=hai) anos
pai
achega
793d96a793
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/views/orderingFood/index.vue

+ 3 - 3
src/views/orderingFood/index.vue

@@ -130,10 +130,10 @@ export default {
       this.type = "宵夜"
       this.time = "19:00 - 24:00"
     }
-    if(localStorage.getItem("tokenERP")){
-
-    }else if(this.$route.query.token){
+    if(this.$route.query.token){
       this.getToken()
+    }else if(localStorage.getItem("tokenERP")){
+      
     }else{
       Toast("没有获取token信息")
     }