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

[frame] 内嵌页面渲染两个重复的 FrameLayout #821

Closed
Ja-hard opened this issue Feb 13, 2025 · 2 comments
Closed

[frame] 内嵌页面渲染两个重复的 FrameLayout #821

Ja-hard opened this issue Feb 13, 2025 · 2 comments
Assignees

Comments

@Ja-hard
Copy link

Ja-hard commented Feb 13, 2025

tdesign-vue-next-starter 版本

0.12.0

重现链接

https://github.com/Ja-hard/monitor_platform_rev_t/tree/master

重现步骤

  1. npm run dev:mock
  2. http://localhost:3002/frame/windows
  3. 可以看到上下渲染了两个相同的 https://www.microsoft.com/en-us/windows

期望结果

      {
        path: 'linux',
        name: 'Linux',
        component: () => import('@/layouts/components/FrameContent.vue'),
        props: (route) => ({
          // detailTar: 'linux',
          frameSrc: route.query.frameSrc || 'https://ubuntu.com/desktop',
        }),
        // redirect: '/result/maintenance',
        meta: {
          // frameSrc: 'https://ubuntu.com/desktop',
          title: {
            zh_CN: 'Linux 系统',
            en_US: 'Linux System',
          },
        },
      },
  • 但是上面的解决方案在切换 Tab 标签页时会发生”假死“现象,具体表现为页面空白,需要手动刷新才能恢复,请问这可能是由于什么造成的?

实际结果

Image

Image

框架版本

Vue(3.5.13)

浏览器版本

Chrome(135.0.3999.2)

系统版本

Windows 11 24H2 IoT LTSC

Node版本

22.13.1

补充说明

  • 路由没有写在后端 mock 的数据,看了下 router/index.ts 的逻辑,把固定页面直接写到了 src\router\modules\user.ts
Copy link
Contributor

👋 @Ja-hard,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Copy link
Contributor

github-actions bot commented Feb 13, 2025

♥️ 有劳 @timi137137 @liweijie0812 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @Ja-hard

@Ja-hard Ja-hard closed this as completed Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants