|
@@ -15,10 +15,11 @@ import SetChartEnName from './components/SetChartEnName.vue'
|
|
|
import {useCachedViewsStore} from '@/store/modules/cachedViews'
|
|
|
import { setExtremumDate } from '@/hooks/chart/commonFun.js'
|
|
|
import {chartLibBtn,useAuthBtn} from '@/hooks/useAuthBtn'
|
|
|
+import {usePublicSettingStore} from '@/store/modules/publicSetting'
|
|
|
const {checkAuthBtn} = useAuthBtn()
|
|
|
import _ from 'lodash';
|
|
|
|
|
|
-
|
|
|
+const publicSettingStore = usePublicSettingStore()
|
|
|
const {options,axisLimitState,chartRender}=useChartRender()
|
|
|
const { width } = useWindowSize()
|
|
|
const cachedViewsStore=useCachedViewsStore()
|
|
@@ -368,7 +369,8 @@ async function getShareLink(){
|
|
|
)
|
|
|
}
|
|
|
if(!confirmFlag.value) return
|
|
|
- const linkUrl = `${import.meta.env.VITE_CHART_LINK}?code=${chartInfo.value.UniqueCode}&fromType=share&lang=${currentLang}`
|
|
|
+ // const linkUrl = `${import.meta.env.VITE_CHART_LINK}?code=${chartInfo.value.UniqueCode}&fromType=share&lang=${currentLang}`
|
|
|
+ const linkUrl = `${publicSettingStore.publicSetting.ChartViewUrl}/chartshow?code=${chartInfo.value.UniqueCode}&fromType=share&lang=${currentLang}`
|
|
|
//console.log('url',linkUrl)
|
|
|
if(navigator.clipboard&&window.isSecureContext){
|
|
|
try{
|