Commit 666fc2a6 authored by nick zheng's avatar nick zheng

fix: 分享应用链接有误

parent 3f76482f
...@@ -3,7 +3,6 @@ import { reactive } from 'vue' ...@@ -3,7 +3,6 @@ import { reactive } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import { createChannelPublishColumn } from '../columns' import { createChannelPublishColumn } from '../columns'
import { INDEX_URLS } from '@/config/base-url'
import useTableScrollY from '@/composables/useTableScrollY' import useTableScrollY from '@/composables/useTableScrollY'
import { copyToClip } from '@/utils/copy' import { copyToClip } from '@/utils/copy'
...@@ -33,12 +32,12 @@ function handleClickChannelPublishTableAction(actionType: string) { ...@@ -33,12 +32,12 @@ function handleClickChannelPublishTableAction(actionType: string) {
} }
function handleAccessPage() { function handleAccessPage() {
const channelUrl = `${INDEX_URLS[window.ENV || 'DEV']}share/web_source/${router.currentRoute.value.params.agentId}` const channelUrl = `${window.location.origin}/fe/share/web_source/${router.currentRoute.value.params.agentId}`
location.href = channelUrl location.href = channelUrl
} }
function handleCopyShareLink() { function handleCopyShareLink() {
const channelUrl = `${INDEX_URLS[window.ENV || 'DEV']}share/web_source/${router.currentRoute.value.params.agentId}` const channelUrl = `${window.location.origin}/fe/share/web_source/${router.currentRoute.value.params.agentId}`
copyToClip(channelUrl) copyToClip(channelUrl)
window.$message.success( window.$message.success(
t('personal_space_module.agent_module.agent_setting_module.agent_publish_module.copy_share_url_success_message'), t('personal_space_module.agent_module.agent_setting_module.agent_publish_module.copy_share_url_success_message'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment