fix: 修复xpack显示问题

This commit is contained in:
wangdan-fit2cloud 2024-07-30 11:02:49 +08:00
parent afddc40ab5
commit 61024a661e
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
</div>
<div class="flex-center avatar">
<el-button
v-if="!user.showXpack()"
v-if="!user.isEnterprise()"
link
type="primary"
@click="toUrl('https://maxkb.cn/pricing.html')"

View File

@ -20,7 +20,7 @@ const currentTemplate = computed(() => {
if (mode && mode === 'embed') {
modeName = 'embed'
} else {
modeName = show_history.value || !user.showXpack() ? 'pc' : 'base'
modeName = show_history.value || !user.isEnterprise() ? 'pc' : 'base'
}
const name = `/src/views/chat/${modeName}/index.vue`

View File

@ -135,7 +135,7 @@ const login = () => {
onMounted(() => {
user.asyncGetProfile().then((res) => {
if (user.showXpack()) {
if (user.isEnterprise()) {
loading.value = true
user
.getAuthType()