From e69cd3b13263bcc150b45b684eabeb98395b0c35 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 25 三月 2024 09:42:47 +0800 Subject: [PATCH] 取消角色切换 --- src/api/system/role.js | 7 ------- src/layout/components/Navbar.vue | 12 ------------ 2 files changed, 0 insertions(+), 19 deletions(-) diff --git a/src/api/system/role.js b/src/api/system/role.js index 3e28128..0fbfe4c 100644 --- a/src/api/system/role.js +++ b/src/api/system/role.js @@ -56,13 +56,6 @@ data: data }) } -// 鍒囨崲瑙掕壊 -export function exchangeRole(roleId) { - return request({ - url: '/system/role/exchange/'+ roleId, - method: 'get', - }) -} // 鍒犻櫎瑙掕壊 export function delRole(roleId) { return request({ diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index a122c07..cd90e52 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -38,13 +38,6 @@ </el-dropdown> </div> - <div class="test-container"> - <el-button-group style="vertical-align: text-bottom;"> - <el-button @click="exchange(100)">鐪佸巺瑙掕壊</el-button> - <el-button @click="exchange(103)">鍖哄幙瑙掕壊</el-button> - <el-button @click="exchange(2)">杩愮淮瑙掕壊</el-button> - </el-button-group> - </div> <div class="button-container"> <el-button type="primary" @click="toScreen">鍙鍖栧ぇ灞�</el-button> </div> @@ -97,11 +90,6 @@ } }, methods: { - exchange(roleId) { - exchangeRole(roleId).then(response => { - this.$modal.msgSuccess("淇敼鎴愬姛"); - }).catch(() => { }); - }, toggleSideBar() { this.$store.dispatch('app/toggleSideBar') }, -- Gitblit v1.8.0