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>