diff --git a/src/components/XButton/src/ButtonBase.vue b/src/components/XButton/src/ButtonBase.vue index 679340802..90ed9a27d 100644 --- a/src/components/XButton/src/ButtonBase.vue +++ b/src/components/XButton/src/ButtonBase.vue @@ -5,7 +5,7 @@ :type="item.type" :color="item.color" :link = "item.link ? item.link : false" - v-hasPermi="[item.hasPermi]" + v-hasPermi="[item.hasPermi] || []" @click="buttonBaseClick(item.name,item,$event)" > diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 5bfaac741..c28f71b9e 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -84,7 +84,8 @@ export function defaultFreshBtn(option:any) { type: 'primary', icon: 'ep:refresh', color: '', - float:'right' + float:'right', + hasPermi: '' }) }