fix: 修复登录后系统参数配置-显示设置和认证设置不显示

This commit is contained in:
Captain.B 2021-01-28 14:23:47 +08:00
parent 4102e2e667
commit 05f543cb51
2 changed files with 125 additions and 119 deletions

View File

@ -28,6 +28,7 @@ public class ShiroUtils {
filterChainDefinitionMap.put("/authsource/list/allenable", "anon");
filterChainDefinitionMap.put("/sso/signin", "anon");
filterChainDefinitionMap.put("/sso/callback", "anon");
filterChainDefinitionMap.put("/license/valid", "anon");
// for swagger
filterChainDefinitionMap.put("/swagger-ui.html", "anon");

View File

@ -62,6 +62,7 @@ import {DEFAULT_LANGUAGE} from "@/common/js/constants";
const requireComponent = require.context('@/business/components/xpack/', true, /\.vue$/);
const display = requireComponent.keys().length > 0 ? requireComponent("./display/Display.vue") : {};
const auth = requireComponent.keys().length > 0 ? requireComponent("./auth/Auth.vue") : {};
const license = requireComponent.keys().length > 0 ? requireComponent("./license/LicenseMessage.vue") : null;
export default {
name: "Login",
@ -117,6 +118,10 @@ export default {
created: function () {
// ,,
document.addEventListener("keydown", this.watchEnter);
//
if (license.default) {
license.default.valid(this)
}
},
destroyed() {
@ -182,106 +187,106 @@ export default {
</script>
<style scoped>
.container {
.container {
width: 1440px;
height: 810px;
margin: calc((100vh - 810px) / 2) auto 0;
background-color: #FFFFFF;
}
}
.el-col:nth-child(3) {
.el-col:nth-child(3) {
align-items: center;
display: flex;
}
}
.title img {
.title img {
width: 293px;
margin-top: 165px;
}
}
.title-img {
.title-img {
letter-spacing: 0;
text-align: center;
}
}
.login-image {
.login-image {
height: 365px;
width: 567px;
margin: auto;
display: block;
}
}
.welcome {
.welcome {
margin-top: 12px;
margin-bottom: 75px;
font-size: 14px;
color: #843697;
line-height: 14px;
text-align: center;
}
}
.form,.btn {
.form, .btn {
padding: 0;
width: 443px;
margin: auto;
}
}
.btn > .submit {
.btn > .submit {
border-radius: 70px;
border-color: #8B479B;
background-color: #8B479B;
}
}
.btn > .submit:hover {
.btn > .submit:hover {
border-color: rgba(139, 71, 155, 0.9);
background-color: rgba(139, 71, 155, 0.9);
}
}
.btn > .submit:active {
.btn > .submit:active {
border-color: rgba(139, 71, 155, 0.8);
background-color: rgba(139, 71, 155, 0.8);
}
}
.el-form-item:first-child {
.el-form-item:first-child {
margin-top: 60px;
}
}
/deep/ .el-radio__input.is-checked .el-radio__inner {
/deep/ .el-radio__input.is-checked .el-radio__inner {
background-color: #783887;
background: #783887;
border-color: #783887;
}
}
/deep/ .el-radio__input.is-checked+.el-radio__label {
/deep/ .el-radio__input.is-checked + .el-radio__label {
color: #783887;
}
}
/deep/ .el-input__inner {
/deep/ .el-input__inner {
border-radius: 70px !important;
background: #f6f3f8 !important;
border-color: #f6f3f8 !important;
/*谷歌浏览器默认填充的颜色无法替换,使用下列样式填充*/
box-shadow: inset 0 0 0 1000px #f6f3f8 !important;
}
}
.el-input,.el-button {
.el-input, .el-button {
width: 443px;
}
}
/deep/ .el-input__inner:focus {
/deep/ .el-input__inner:focus {
border: 1px solid #783887 !important;
}
}
.divider {
.divider {
border: 1px solid #f6f3f8;
height: 480px;
margin: 165px 0px;
}
}
.welcome span:first-child {
.welcome span:first-child {
font-weight: bold;
margin-right: 3px;
}
}
</style>