Explorar el Código

网页跳转修改

hwb0 hace 3 años
padre
commit
7f3dec9e8f
Se han modificado 1 ficheros con 2 adiciones y 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>