webapp 用户页跳转登录页,登录完返回刷新用户页

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_30756923/article/details/84631596

mui项目:我有两种方案:

1.window.opener.reload()

2.登录页以弹出层的方式载入,登录完只需刷新当前就ok

created(){

      //判断是否已登录

}

vue-cli项目 当前使用

// 返回并刷新

this.$router.go(-1);

猜你喜欢

转载自blog.csdn.net/qq_30756923/article/details/84631596