fix: 修复xpack显示问题
This commit is contained in:
parent
afddc40ab5
commit
61024a661e
@ -11,7 +11,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex-center avatar">
|
<div class="flex-center avatar">
|
||||||
<el-button
|
<el-button
|
||||||
v-if="!user.showXpack()"
|
v-if="!user.isEnterprise()"
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="toUrl('https://maxkb.cn/pricing.html')"
|
@click="toUrl('https://maxkb.cn/pricing.html')"
|
||||||
|
|||||||
@ -20,7 +20,7 @@ const currentTemplate = computed(() => {
|
|||||||
if (mode && mode === 'embed') {
|
if (mode && mode === 'embed') {
|
||||||
modeName = 'embed'
|
modeName = 'embed'
|
||||||
} else {
|
} 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`
|
const name = `/src/views/chat/${modeName}/index.vue`
|
||||||
|
|||||||
@ -135,7 +135,7 @@ const login = () => {
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
user.asyncGetProfile().then((res) => {
|
user.asyncGetProfile().then((res) => {
|
||||||
if (user.showXpack()) {
|
if (user.isEnterprise()) {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
user
|
user
|
||||||
.getAuthType()
|
.getAuthType()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user