mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复xpack显示问题
This commit is contained in:
parent
afddc40ab5
commit
61024a661e
|
|
@ -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')"
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ const login = () => {
|
|||
|
||||
onMounted(() => {
|
||||
user.asyncGetProfile().then((res) => {
|
||||
if (user.showXpack()) {
|
||||
if (user.isEnterprise()) {
|
||||
loading.value = true
|
||||
user
|
||||
.getAuthType()
|
||||
|
|
|
|||
Loading…
Reference in New Issue