login路由
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
1.数据库数据同步
|
||||
sys_dept,sys_dict,sys_dict_detail,sys_param,
|
||||
sys_role,sys_users_roles,sys_menus,sys_role_menus,
|
||||
sys_user,sys_user_dept
|
||||
|
||||
代码移动至sso包下
|
||||
2.前端移动模块包括:用户,角色,菜单,部门,字典 param,grid ,登入页面
|
||||
3.代码移动包括:用户,角色,菜单,部门,字典 param,grid
|
||||
|
||||
@@ -80,7 +80,7 @@ https://juejin.cn/post/6844903775631572999
|
||||
<root level="debug">
|
||||
<appender-ref ref="CONSOLE"/>
|
||||
<appender-ref ref="asyncFileAppender"/>
|
||||
<appender-ref ref="lokiAppender" />
|
||||
<!-- <appender-ref ref="lokiAppender" />-->
|
||||
</root>
|
||||
<logger name="org.springframework" level="ERROR" additivity="false">
|
||||
<appender-ref ref="CONSOLE"/>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="login" :style="'background-image:url('+ Background +');'">
|
||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" label-position="left" label-width="0px" class="login-form">
|
||||
<h3 class="title">
|
||||
{{title}}</h3>
|
||||
{{ title }}</h3>
|
||||
<el-form-item prop="username">
|
||||
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
|
||||
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
||||
@@ -130,7 +130,8 @@ export default {
|
||||
}
|
||||
this.$store.dispatch('Login', user).then(() => {
|
||||
this.loading = false
|
||||
this.$router.push({ path: this.redirect || '/' })
|
||||
window.location.href = this.redirect
|
||||
// this.$router.push({ path: this.redirect || '/' })
|
||||
}).catch(() => {
|
||||
this.loading = false
|
||||
this.getCode()
|
||||
|
||||
Reference in New Issue
Block a user