File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
packages/components/breadcrumb/src Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 11<template >
22 <span :class =" ns.e('item')" >
33 <span
4- ref =" link"
54 :class =" [ns.e('inner'), ns.is('link', !!to)]"
65 role =" link"
76 @click =" onClick"
1817</template >
1918
2019<script lang="ts" setup>
21- import { getCurrentInstance , inject , ref } from ' vue'
20+ import { getCurrentInstance , inject } from ' vue'
2221import ElIcon from ' @element-plus/components/icon'
2322import { useNamespace } from ' @element-plus/hooks'
2423import { breadcrumbKey } from ' ./constants'
@@ -38,8 +37,6 @@ const ns = useNamespace('breadcrumb')
3837
3938const router = instance .appContext .config .globalProperties .$router as Router
4039
41- const link = ref <HTMLSpanElement >()
42-
4340const onClick = () => {
4441 if (! props .to || ! router ) return
4542 props .replace ? router .replace (props .to ) : router .push (props .to )
You can’t perform that action at this time.
0 commit comments