瀏覽代碼

bug修改

sunlupeng 1 年之前
父節點
當前提交
f973641097
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pages/work/index.vue

+ 1 - 1
pages/work/index.vue

@@ -41,7 +41,7 @@
 		},
 		onShow(){
 		  let option = uni.getStorageSync('option');
-		  this.initIndex = option.initIndex;
+		  this.initIndex = option.initIndex?option.initIndex:0;
 		  this.refresh();
 		},
 		methods: {