关于若依框架发布服务器点击刷新、退出报404和nginx欢迎页面问题解决

前端配置如图

  1. 用于解决点击退出时404页面
    在这里插入图片描述
this.$store.dispatch('LogOut').then(() => {
          // location.href = '/index';
          this.$router.push(`/login?redirect=${this.$route.fullPath}`)
        })
  1. 页面刷新出问题,nginx配置如图
    在这里插入图片描述
    location路径配置问题,我上篇博客已经有了,这里放上连接
    https://blog.csdn.net/singerDog/article/details/127567200?spm=1001.2014.3001.5501

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注