#
Junjie
6 天以前 410a7a2ca039361a0082655fd95f79abd50ca33f
src/main/webapp/static/js/config/config.js
@@ -259,6 +259,27 @@
                    }
                });
                break;
            case 'activate':
                layer.confirm('确定执行一键激活吗', function(){
                    $.ajax({
                        url: baseUrl + "/license/activate",
                        headers: {'token': localStorage.getItem('token')},
                        method: 'POST',
                        success: function (res) {
                            if (res.code === 200){
                                layer.msg('激活成功');
                            } else if (res.code === 403){
                                top.location.href = baseUrl+"/";
                            } else {
                                layer.msg(res.msg)
                            }
                        },
                        error: function () {
                            layer.msg('激活失败');
                        }
                    });
                });
                break;
        }
    });