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

In production environment, components cannot load properly when switching routes. #616

Closed
NightCatSama opened this issue Jun 27, 2018 · 1 comment

Comments

@NightCatSama
Copy link

NightCatSama commented Jun 27, 2018

Bug report

If the page is loaded for the first time, the component is normal.
image

But when I click the sidebar to jump to the page, the component won't work.
image

All components are registered in enhanceApp.js
image

This is the .md file.

### 尺寸
多种尺寸应对不同场景

<demo link="/demos/Btn/size">
  <btn-size></btn-size>
  <template slot="code">

<<< @/docs/demos/Btn/size.vue

  </template>
</demo>

Version

vue 2.5.16
vuepress 0.10.2

Steps to reproduce

It is normal to open it for the first time https://hi-fe.github.io/hiui-m/components/Btn.html

Click the sidebar to jump to other pages and jump back to not display.

  • Your OS: macOS 10.12.6
  • Node.js version: 9.10.1
  • Browser version: Chrome 67
  • Is this a global or local install? local
  • Which package manager did you use for the install? yarn
@ulivz
Copy link
Member

ulivz commented Jul 1, 2018

It looks more like an issue of one of your components.

If you are sure that this is vuepress's issue, please remove all of your customized components and provide a minimum reproduction repo. Thank you.

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

2 participants