修改顺序
This commit is contained in:
		
							parent
							
								
									8727ae913d
								
							
						
					
					
						commit
						335f4c5564
					
				@ -179,7 +179,14 @@
 | 
				
			|||||||
							})
 | 
												})
 | 
				
			||||||
							return false
 | 
												return false
 | 
				
			||||||
						} else {
 | 
											} else {
 | 
				
			||||||
 | 
												console.log(123)
 | 
				
			||||||
							me.loginIn(res.data.token); //存储一个字符传值
 | 
												me.loginIn(res.data.token); //存储一个字符传值
 | 
				
			||||||
 | 
												// 缓存用户的信息
 | 
				
			||||||
 | 
												uni.setStorageSync({ 
 | 
				
			||||||
 | 
													key: 'user_info',
 | 
				
			||||||
 | 
													data: res.data
 | 
				
			||||||
 | 
												});
 | 
				
			||||||
 | 
												
 | 
				
			||||||
							if (res.data.member.has_labels) {
 | 
												if (res.data.member.has_labels) {
 | 
				
			||||||
								uni.switchTab({
 | 
													uni.switchTab({
 | 
				
			||||||
									url: '/pages/index/index'
 | 
														url: '/pages/index/index'
 | 
				
			||||||
@ -189,14 +196,7 @@
 | 
				
			|||||||
									url: '/pageA/topick/topick'
 | 
														url: '/pageA/topick/topick'
 | 
				
			||||||
								})
 | 
													})
 | 
				
			||||||
							}
 | 
												}
 | 
				
			||||||
							// 缓存用户的信息
 | 
												
 | 
				
			||||||
							uni.setStorageSync({ 
 | 
					 | 
				
			||||||
								key: 'user_info',
 | 
					 | 
				
			||||||
								data: res.data,
 | 
					 | 
				
			||||||
								success: function() {
 | 
					 | 
				
			||||||
									console.log('success');
 | 
					 | 
				
			||||||
								}
 | 
					 | 
				
			||||||
							});
 | 
					 | 
				
			||||||
						}
 | 
											}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
						// 存储接口请求所需token
 | 
											// 存储接口请求所需token
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user