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

import css bug? #97

Closed
yuchonghua opened this issue Jan 1, 2017 · 3 comments
Closed

import css bug? #97

yuchonghua opened this issue Jan 1, 2017 · 3 comments
Labels

Comments

@yuchonghua
Copy link

yuchonghua commented Jan 1, 2017

  • Install the template
vue init ddvs/nuxt testeui&&cd testeui&&npm i
  • Enter debug mode
npm run dev

This time we can normally open http://127.0.0.1:3000/admin

Because css is the introduction of such

image

But when I recommend the introduction of being given the wrong way
element-ui init doc

image

This is the element-ui the bugs? Or my own allocation of the problem

This question is available on Nuxt.js community (#c77)
@Atinux
Copy link
Member

Atinux commented Jan 2, 2017

Hi @yuchonghua

Nuxt.js uses Vue files so you should not import css in the <script> block.

Add in your layouts/admin.vue file:

<style src="element-ui/lib/theme-default/index.css"></style>

This will do the work.

@Atinux Atinux closed this as completed Jan 2, 2017
@yuchonghua
Copy link
Author

thank you very much for your reply

@lock
Copy link

lock bot commented Nov 5, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 5, 2018
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants