Przeglądaj źródła

[dev]
1、打开监听wss

Neo 1 rok temu
rodzic
commit
cfc50755a1
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      pages/login/login.vue

+ 1 - 3
pages/login/login.vue

@@ -59,8 +59,6 @@ const isFull = computed(()=>{
 		console.log('false')
 		return false 
 	}
-	
-	
 })
 
 onLoad(() => {
@@ -93,7 +91,7 @@ const submit = async ()=> {
 		uni.setStorageSync('token', res.token)
 		uni.setStorageSync('userId', res.userId)
 		// todo 开启监听 neo
-		// uni.$emit('login',{userId:res.userId})
+		uni.$emit('login',{userId:res.userId})
 		console.log('11')
 		console.log('res.token',res.token)
 		// JSON.stringify(params.data.data)