fix: chat url (#3441)
This commit is contained in:
parent
f0ef375010
commit
07937fcaf5
@ -99,10 +99,7 @@
|
|||||||
{{ $t('views.applicationOverview.appInfo.embedInWebsite') }}
|
{{ $t('views.applicationOverview.appInfo.embedInWebsite') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 访问限制 -->
|
<!-- 访问限制 -->
|
||||||
<el-button
|
<el-button @click="openLimitDialog" v-if="permissionPrecise.overview_access(id)">
|
||||||
@click="openLimitDialog"
|
|
||||||
v-if="permissionPrecise.overview_access(id)"
|
|
||||||
>
|
|
||||||
<el-icon class="mr-4"><Lock /></el-icon>
|
<el-icon class="mr-4"><Lock /></el-icon>
|
||||||
{{ $t('views.applicationOverview.appInfo.accessControl') }}
|
{{ $t('views.applicationOverview.appInfo.accessControl') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -237,7 +234,7 @@ import permissionMap from '@/permission'
|
|||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|
||||||
const apiType = computed<'workspace'>(() => {
|
const apiType = computed<'workspace'>(() => {
|
||||||
return 'workspace'
|
return 'workspace'
|
||||||
})
|
})
|
||||||
const permissionPrecise = computed(() => {
|
const permissionPrecise = computed(() => {
|
||||||
return permissionMap['application'][apiType.value]
|
return permissionMap['application'][apiType.value]
|
||||||
@ -265,7 +262,7 @@ const urlParams = computed(() =>
|
|||||||
mapToUrlParams(apiInputParams.value) ? '?' + mapToUrlParams(apiInputParams.value) : '',
|
mapToUrlParams(apiInputParams.value) ? '?' + mapToUrlParams(apiInputParams.value) : '',
|
||||||
)
|
)
|
||||||
const shareUrl = computed(
|
const shareUrl = computed(
|
||||||
() => application.location + accessToken.value.access_token + urlParams.value,
|
() => `${window.location.origin}/chat/` + accessToken.value.access_token + urlParams.value,
|
||||||
)
|
)
|
||||||
|
|
||||||
const dayOptions = [
|
const dayOptions = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user