瀏覽代碼

no message

zpj 2 年之前
父節點
當前提交
57f47f155e
共有 1 個文件被更改,包括 3 次插入 和 0 次删除
  1. 3 0
      pages/index/index.vue

+ 3 - 0
pages/index/index.vue

@@ -127,6 +127,9 @@
 			this.userName = uni.getStorageSync('userName');
 			this.$wow.init();
 		},
+		mounted() {
+			this.userName = uni.getStorageSync('userName');
+		},
 		methods: {
 			swiperChange(e){
 				if(e.detail.current!=this.index){