Commit f48aeb9a by 胡悦

获取按钮权限方法添加“解绑”

1 parent 588f3de1
...@@ -3,7 +3,7 @@ export const Common = { ...@@ -3,7 +3,7 @@ export const Common = {
setAuthBtn(resData) { setAuthBtn(resData) {
let data = resData || store.getters.curMenuAuth.data let data = resData || store.getters.curMenuAuth.data
const authBtnEl = document.getElementsByTagName('button') const authBtnEl = document.getElementsByTagName('button')
const authStringArr = ['新增', '编辑', '删除', '导出', '导入', '修改'] const authStringArr = ['新增', '编辑', '删除', '导出', '导入', '修改', '解绑']
if (authBtnEl && authBtnEl.length > 0) { if (authBtnEl && authBtnEl.length > 0) {
if (data && data.length > 0) { if (data && data.length > 0) {
authBtnEl.forEach(elItem => { authBtnEl.forEach(elItem => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!