liujd hace 6 años
padre
commit
97ae05ac7d
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      mobile-code/src/pages/home/user.vue

+ 5 - 1
mobile-code/src/pages/home/user.vue

@@ -194,7 +194,11 @@ export default {
 		logoutFn() {
 			uni.clearStorageSync()
 			// #ifdef H5
-			location.reload()
+			// location.reload()
+			this.$util.pageTo({
+				url: '/pages/home/index',
+				type: 4
+			})
 			// #endif
 			// #ifndef H5
 			this.$util.pageTo({