Sfoglia il codice sorgente

添加退出登录功能

gcz 2 anni fa
parent
commit
34758f3c24
3 ha cambiato i file con 14 aggiunte e 0 eliminazioni
  1. 14 0
      center/center.vue
  2. BIN
      static/logo.png
  3. BIN
      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>

BIN
static/logo.png


BIN
static/qrlogo.png