Skip to content

Commit cf8df8a

Browse files
committed
feat: Pricing button permission
1 parent 6f04b99 commit cf8df8a

File tree

1 file changed

+4
-1
lines changed
  • ui/src/layout/layout-header/top-about

1 file changed

+4
-1
lines changed

ui/src/layout/layout-header/top-about/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<template>
22
<div class="flex align-center">
3-
<el-button round @click="toUrl('https://maxkb.cn/pricing.html')" class="pricing-button mr-8">
3+
<el-button round @click="toUrl('https://maxkb.cn/pricing.html')" class="pricing-button mr-8"
4+
v-hasPermission="EditionConst.IS_CE"
5+
>
46
<AppIcon iconName="app-pricing" class="mr-8"></AppIcon>
57
{{ $t('common.upgrade') }}
68
</el-button>
@@ -47,6 +49,7 @@
4749
</template>
4850
<script setup lang="ts">
4951
import useStore from '@/stores'
52+
import { EditionConst, RoleConst } from '@/utils/permission/data';
5053
const { theme, user } = useStore()
5154
5255
function toUrl(url: string) {

0 commit comments

Comments
 (0)