Showing
1 changed file
with
5 additions
and
2 deletions
... | ... | @@ -52,7 +52,9 @@ |
52 | 52 | <div class="mt-4" v-if="!isCustomer"> |
53 | 53 | <a-button type="primary" class="mr-4" @click="copyTbDeviceId">复制设备ID</a-button> |
54 | 54 | <a-button type="primary" class="mr-4" @click="copyDeviceToken">复制访问令牌</a-button> |
55 | - <a-button type="primary" class="mr-4" @click="manageDeviceToken">管理设备凭证</a-button> | |
55 | + <Authority value="api:yt:device:equipment"> | |
56 | + <a-button type="primary" class="mr-4" @click="manageDeviceToken">管理设备凭证</a-button> | |
57 | + </Authority> | |
56 | 58 | <ManageDeviceTokenModal @register="registerModal" /> |
57 | 59 | </div> |
58 | 60 | <div class="mt-4"> |
... | ... | @@ -84,10 +86,10 @@ |
84 | 86 | import { DeviceTypeEnum } from '/@/api/device/model/deviceModel'; |
85 | 87 | import { useAuthDeviceDetail } from '../../hook/useAuthDeviceDetail'; |
86 | 88 | import { useClipboard } from '@vueuse/core'; |
87 | - | |
88 | 89 | import wz from '/@/assets/images/wz.png'; |
89 | 90 | import { useAsyncQueue } from '../../../localtion/useAsyncQueue'; |
90 | 91 | import locationImage from '/@/assets/icons/location.svg'; |
92 | + import { Authority } from '/@/components/Authority'; | |
91 | 93 | |
92 | 94 | export default defineComponent({ |
93 | 95 | components: { |
... | ... | @@ -98,6 +100,7 @@ |
98 | 100 | BasicModal, |
99 | 101 | Tooltip, |
100 | 102 | Empty, |
103 | + Authority, | |
101 | 104 | }, |
102 | 105 | props: { |
103 | 106 | deviceDetail: { | ... | ... |