File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ const urlParams = computed(() =>
263263 mapToUrlParams (apiInputParams .value ) ? ' ?' + mapToUrlParams (apiInputParams .value ) : ' ' ,
264264)
265265const shareUrl = computed (
266- () => ` ${window .location .origin }/chat/ ` + accessToken .value .access_token + urlParams .value ,
266+ () => ` ${window .location .origin }/chat/ ` + accessToken .value ? .access_token + urlParams .value ,
267267)
268268
269269const dayOptions = [
Original file line number Diff line number Diff line change 4646 </el-button >
4747 <template #dropdown >
4848 <el-dropdown-menu >
49- <el-dropdown-item :href =" shareUrl" >
50- <AppIcon iconName =" app-create-chat" class =" mr-4" ></AppIcon >
51- {{ $t('views.application.operation.toChat') }}
52- </el-dropdown-item >
49+ <a :href =" shareUrl" target =" _blank" >
50+ <el-dropdown-item >
51+ <AppIcon iconName =" app-create-chat" class =" mr-4" ></AppIcon >
52+ {{ $t('views.application.operation.toChat') }}
53+ </el-dropdown-item >
54+ </a >
5355
5456 <el-dropdown-item @click =" openHistory" >
5557 <AppIcon iconName =" app-history-outlined" ></AppIcon >
@@ -182,7 +184,7 @@ const urlParams = computed(() =>
182184 mapToUrlParams (apiInputParams .value ) ? ' ?' + mapToUrlParams (apiInputParams .value ) : ' ' ,
183185)
184186const shareUrl = computed (
185- () => ` ${window .location .origin }/chat/ ` + detail .value .access_token + urlParams .value ,
187+ () => ` ${window .location .origin }/chat/ ` + detail .value ? .access_token + urlParams .value ,
186188)
187189
188190function back() {
You can’t perform that action at this time.
0 commit comments