Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
588 views
in Technique[技术] by (71.8m points)

vue登陆新打开页面问题

vue里面新打开一个页面,新打开的页面登录状态重置了,不再处于登录状态

` gorouter(index) {

  if (index === "/proposal") {
    let routeData = this.$router.resolve({
      path: "/proposal",
    });
    window.open(routeData.href, "_blank");
  } else {
    this.$router.push({ path: index });
  }
},`

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

需要持久化

早期方案是 cookie ,看上去你们有可能想防护跨站伪造攻击,storage 持久化也行。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...