当前位置: 首页 > Web前端 > vue.js

vue打开新页面并传递参数

时间:2023-03-31 21:10:39 vue.js

vue打开新页面并传递参数window.open(`/#/logExploration/logContext?timestamp=${encodeURI(row["@timestamp"])}&warehouses=${encodeURI(row._index)}`);另一页consttemp2=location.href.split("?")[1];constparams=newURLSearchParams(`?${temp2}`);this.formData.warehouses=decodeURI(params.get("仓库"));this.formData.timestamp=decodeURI(params.get("timestamp"));