瀏覽代碼

添加退出登录功能

gcz 2 年之前
父節點
當前提交
34758f3c24
共有 3 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      center/center.vue
  2. 二進制
      static/logo.png
  3. 二進制
      static/qrlogo.png

+ 14 - 0
center/center.vue

@@ -51,6 +51,16 @@
 						url="/center/resetpass"
 						:customStyle="cellCustomStyle"
 				    ></u-cell>
+					<u-cell
+					    title="退出登录"
+					    value=""
+					    center
+						:isLink="true"
+						:border="true"
+						@click="logOut"
+						icon="/static/img/logout.svg"
+						:customStyle="cellCustomStyle"
+					></u-cell>
 				</u-cell-group>
 			</view>
 		</view>
@@ -92,6 +102,10 @@
 					console.log('memberInfo',err.data);
 				})
 			},
+			logOut(){
+				this.$u.vuex('vuex_user_info', {});
+				this.getMemberInfo()
+			}
 		}
 	}
 </script>

二進制
static/logo.png


二進制
static/qrlogo.png