فهرست منبع

网页跳转修改

hwb0 3 سال پیش
والد
کامیت
7f3dec9e8f
1فایلهای تغییر یافته به همراه2 افزوده شده و 9 حذف شده
  1. 2 9
      pages/webview/index.vue

+ 2 - 9
pages/webview/index.vue

@@ -11,18 +11,11 @@
 			}
 		},
 
-		//decodeURIComponent()函数可以识别并且分立出url
 		onLoad(options) {
-			console.log('options', options);
+			//decodeURIComponent()函数可以识别并且分立出url
 			let fromPath = decodeURIComponent(options.url);
-			this.setData({
-				url: fromPath
-			})
+			this.url = fromPath
 		},
-
-		methods: {
-
-		}
 	}
 </script>