Skip to content

Commit

Permalink
fix: remove redundant 'vue' import.
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo-Messi committed Jan 17, 2025
1 parent 292c86e commit 5db86b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,13 @@ export const getVideoConfig = (props: VideoProps) => {
*
* @returns 当前页面的分享链接。
*/
export function useShareLink(): import('vue').ComputedRef<string> {
export function useShareLink(): ComputedRef<string> {
const router = useRouter()
return computed(() => {
return `${window.location.origin}${router.route.path.replace(/^\/[a-z]{2}\//, '/')}`
})
}

/**
* 处理点击事件,执行复制操作或者跳转。
*
Expand Down

0 comments on commit 5db86b2

Please sign in to comment.