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

路由跳转问题-路由跳转后内容区域偶尔显示空白-需要手动刷新页面 #183

Open
HuiBig opened this issue Oct 8, 2022 · 9 comments

Comments

@HuiBig
Copy link

HuiBig commented Oct 8, 2022

No description provided.

@IceCola10086
Copy link

大概率是Transition的问题。
仅支持单个元素或组件作为其插槽内容。

正确的用法 ⭕️

<template>
 <div>内容</div>
</template>

错误的用法 ❌

<template>
 <div>内容</div>
 <div>内容</div>
</template>

错误的用法 ❌ 注释也会显示白屏

<template>
 <!-- 我是注释 -->
 <div>内容</div>
</template>

@itskaiway
Copy link

不单纯像是你标记的两个场景才会出现,有点玄学,主要是也没抛什么错误信息

@dockfries
Copy link

dockfries commented Nov 21, 2022

关于template标签下的第一个元素不能是注释

<template>
    <!-- 不能在这放注释 -->
    <div class="container">
        ...
    </div>
</template>

@xinghog
Copy link

xinghog commented Jan 5, 2023

没有以上所有问题,还是会白屏

@likailun101929
Copy link

请问解决了? 怎么解决的

@Doracoin
Copy link

Doracoin commented May 8, 2023

遇到了同样的问题,没有上面网友所提到的错误用法,还是会有该现象发生

@IceCola10086
Copy link

文件 src/settings/projectSetting.ts
isPageAnimate 设置为 false试一下。不行就把动画组件全部注释掉。

@xiedandan
Copy link

没错,我也是这样

@gyh333
Copy link

gyh333 commented Nov 28, 2023

在App.vue文件中,找到代码
<RouterView />
更改为
<RouterView :key="$route.fullPath" />
添加key防止同路由页面不刷新的问题

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

9 participants