1、去掉默认登录用户名、密码

2、超管 角色、用户状态禁用
This commit is contained in:
wenchaogong 2021-08-19 17:50:20 +08:00
parent ad708ff3a6
commit fd7b9fa137
3 changed files with 4 additions and 2 deletions

View File

@ -65,8 +65,8 @@ export default {
codeUrl: "",
cookiePassword: "",
loginForm: {
username: "admin",
password: "admin123",
username: "",
password: "",
rememberMe: false,
code: "",
uuid: ""

View File

@ -112,6 +112,7 @@
<template slot-scope="scope">
<el-switch
v-model="scope.row.status"
:disabled="scope.row.roleId === 1"
active-value="0"
inactive-value="1"
@change="handleStatusChange(scope.row)"

View File

@ -150,6 +150,7 @@
<template slot-scope="scope">
<el-switch
v-model="scope.row.status"
:disabled="scope.row.userId === 1"
active-value="0"
inactive-value="1"
@change="handleStatusChange(scope.row)"