819527061@qq.com
2025-01-08 1618162f712fc414702bce924ff367397ff8ec1d
src/assets/js/ByUtils.js
@@ -111,8 +111,17 @@
                    vm.$router.push({'path': '/login'});
                    vm.$alert('会话结束,请重新登录', {'title': '提示', 'type': 'warning', 'center': true, 'showClose': false});
                }else{
                    vm.$alert('操作失败:' + data.message, {'title': '提示', 'type': 'warning', 'center': true, 'showClose': false});
                }
                    let a = '';
                    if(response.data){
                        if(response.data.msg){
                            a=response.data.msg
                        }else {
                            a='服务器故障'
                        }
                    }else {
                        a="数据错误"
                    }
                    vm.$alert(a , {'title': '提示', 'type': 'warning', 'center': true, 'showClose': false});                }
            }
        }).catch((e) => {
            vm.$loading().close();
@@ -265,9 +274,12 @@
        }).then((response) => {
            //vm.$loading().close();
            let data = response.data;
            console.log(response)
        if (data && data.code==0) {
                callBackFunction(data);
            } else {
            } else if(data.code==1) {
            callBackFunction(data);
        }else {
                if(data.message=='-9999'){
                    vm.$router.push({'path': '/login'});
                    vm.$alert('会话结束,请重新登录', {'title': '提示', 'type': 'warning', 'center': true, 'showClose': false});