mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-01-31 17:12:49 +08:00
修复 无法取消关联组件 问题
修复 删除关联用户 还无法删除角色问题 去掉 global.user.token 无用属性
This commit is contained in:
parent
59ee88ac19
commit
54b4457af1
@ -5,7 +5,7 @@
|
||||
"groupId" : "4f0230049d7e4f39b1e0897cc0f46f9a",
|
||||
"name" : "删除",
|
||||
"createTime" : null,
|
||||
"updateTime" : 1647618260057,
|
||||
"updateTime" : 1655304921225,
|
||||
"lock" : "0",
|
||||
"createBy" : null,
|
||||
"updateBy" : null,
|
||||
@ -55,5 +55,8 @@ if(Arrays.asList(id.split(',')).contains('1')){
|
||||
for(userId in id.split(',')){
|
||||
SqlCache.delete(`permissions:${userId}`)
|
||||
db.table("sys_user").logic().where().eq("id",userId).delete();
|
||||
db.update("""
|
||||
delete from sys_user_role where user_id = #{userId}
|
||||
""")
|
||||
}
|
||||
return true
|
@ -13,7 +13,6 @@ export function setToken(token) {
|
||||
export function removeToken() {
|
||||
localStorage.removeItem(TokenKey);
|
||||
global.user = {
|
||||
token: '',
|
||||
authorities: [],
|
||||
info: {},
|
||||
permissionRoutes: []
|
||||
|
@ -3,7 +3,6 @@ import { reactive, ref } from 'vue'
|
||||
export default {
|
||||
title: 'Magic Boot',
|
||||
user: {
|
||||
token: '',
|
||||
authorities: [],
|
||||
info: {},
|
||||
permissionRoutes: []
|
||||
|
@ -28,7 +28,7 @@
|
||||
<el-input v-model="temp.url" />
|
||||
</el-form-item>
|
||||
<el-form-item label="关联组件" prop="componentName" v-if="menuType == 'menu'">
|
||||
<el-tree-select v-model="temp.componentName" :data="componentTree" :key="temp.componentName" style="width: 100%" placeholder=" " />
|
||||
<el-tree-select v-model="temp.componentName" :data="componentTree" :key="temp.componentName" clearable style="width: 100%" placeholder=" " />
|
||||
</el-form-item>
|
||||
<el-form-item label="权限标识" prop="permission" v-if="menuType == 'button'">
|
||||
<el-input v-model="temp.permission" />
|
||||
|
Loading…
Reference in New Issue
Block a user