瀏覽代碼

网页跳转修改

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>