feat: Pricing button permission
This commit is contained in:
parent
6f04b99aef
commit
cf8df8a1f7
@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex align-center">
|
<div class="flex align-center">
|
||||||
<el-button round @click="toUrl('https://maxkb.cn/pricing.html')" class="pricing-button mr-8">
|
<el-button round @click="toUrl('https://maxkb.cn/pricing.html')" class="pricing-button mr-8"
|
||||||
|
v-hasPermission="EditionConst.IS_CE"
|
||||||
|
>
|
||||||
<AppIcon iconName="app-pricing" class="mr-8"></AppIcon>
|
<AppIcon iconName="app-pricing" class="mr-8"></AppIcon>
|
||||||
{{ $t('common.upgrade') }}
|
{{ $t('common.upgrade') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -47,6 +49,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import useStore from '@/stores'
|
import useStore from '@/stores'
|
||||||
|
import { EditionConst, RoleConst } from '@/utils/permission/data';
|
||||||
const { theme, user } = useStore()
|
const { theme, user } = useStore()
|
||||||
|
|
||||||
function toUrl(url: string) {
|
function toUrl(url: string) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user