Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 当URL存在锚点时,同一个路由会有多个标签页 #5215

Open
5 tasks done
Pro-linx opened this issue Dec 23, 2024 · 0 comments
Open
5 tasks done

Bug: 当URL存在锚点时,同一个路由会有多个标签页 #5215

Pro-linx opened this issue Dec 23, 2024 · 0 comments

Comments

@Pro-linx
Copy link

Pro-linx commented Dec 23, 2024

Version

Vben Admin V5

Describe the bug?

当URL存在锚点时,同一个路由会有多个标签页,同时导致锚点无法使用。

Reproduction

<script lang="ts" setup>
import { Page } from '@vben/common-ui';
</script>

<template>
  <Page title="锚点测试">
    <div id="test">锚点测试</div>
    <a href="#test">跳转锚点</a>
  </Page>
</template>

System Info

  System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics         
    Memory: 3.06 GB / 15.37 GB
  Binaries:
    Node: 20.16.0 - D:\Software\nodejs\node.EXE
    Yarn: 1.22.22 - ~\AppData\Local\pnpm\yarn.CMD
    npm: 10.8.1 - D:\Software\nodejs\npm.CMD
    pnpm: 9.15.0 - ~\AppData\Local\pnpm\pnpm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527

Relevant log output

No response

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant