vue新打开页面并传递参数

window.open(
        `/#/logExploration/logContext?timestamp=${encodeURI(
          row["@timestamp"]
        )}&warehouses=${encodeURI(row._index)}`
      );

另一个页面

    const temp2 = location.href.split("?")[1];
    const params = new URLSearchParams(`?${temp2}`);
    this.formData.warehouses = decodeURI(params.get("warehouses"));
    this.formData.timestamp = decodeURI(params.get("timestamp"));

一个大秤砣
0 声望0 粉丝