瀏覽代碼

diy网络问题重新加载页面

evoxwht 2 年之前
父節點
當前提交
dd1faf00b3
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      template/uni-app/pages/index/diy/index.vue

+ 8 - 1
template/uni-app/pages/index/diy/index.vue

@@ -715,7 +715,14 @@
 								icon: 'none',
 								duration: 2000
 							})
-						}
+						}
+						setTimeout(e => {
+							this.diyData();
+							this.getIndexData();
+							getShare().then(res => {
+								this.shareInfo = res.data;
+							});
+						}, 2000)
 						this.errorNetwork = true
 						this.showSkeleton = false;
 					}