登录后不自动跳转

that.$http.post(Config.Domain + '/login',that.loginform)
.then(function(ret){
    if(ret.statusText === 'OK'){
        that.$Notice.success({
            title: '登录成功',
            desc: ''
        });
        //window.location = Config.Domain;
        window.location.href = Config.Domain;
        //window.location.reload();
    }
}).catch(function(e){
    console.log(e.statusText);
});

dev:apache 正常跳转 服务器:nginx 不跳转 单页面没有设置路由 提交后 status:302

求解 万谢!

讨论数量: 1

我是不是可以理解接口没请求成功,可以着重看下接口。

4年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!