自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-15 57374f693d6977784497e92c61304a0d26e83438
src/main/webapp/views/password.html
@@ -6,7 +6,7 @@
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../static/layui/css/layui.css" media="all">
    <style>
        #password-div {
            padding: 20px 20px 20px 13px;
@@ -62,8 +62,8 @@
    </div>
</div>
</body>
<script type="text/javascript" src="/static/js/jquery/jquery-3.3.1.min.js"></script>
<script src="/static/layui/layui.js"></script>
<script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
<script src="../static/layui/layui.js"></script>
<script>
    layui.use(['form'], function() {
        var form = layui.form,
@@ -103,7 +103,7 @@
                password: $('#password').val(),
            };
            $.ajax({
                url: "/user/update/auth",
                url: baseUrl+"/user/update/auth",
                headers: {'token': localStorage.getItem('token')},
                data: user,
                method: 'POST',
@@ -114,17 +114,17 @@
                            btn: ['确定'],
                            btn1: function(){
                                localStorage.removeItem("token");
                                top.location.href = "/";
                                top.location.href = baseUrl+"/";
                            },
                            cancel: function(){
                                localStorage.removeItem("token");
                                top.location.href = "/";
                                top.location.href = baseUrl+"/";
                            },
                            closeBtn: 0,
                            shadeClose: false,
                        })
                    } else if (res.code === 403){
                        top.location.href = "/";
                        top.location.href = baseUrl+"/";
                    } else {
                        layer.msg(res.msg);
                    }