Explorar o código

网页跳转修改

hwb0 %!s(int64=3) %!d(string=hai) anos
pai
achega
7f3dec9e8f
Modificáronse 1 ficheiros con 2 adicións e 9 borrados
  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>