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

useDark + vue3 + vite + element-plus在build后切换无效 #3917

Open
7 tasks done
BG7ZAG opened this issue Apr 9, 2024 · 0 comments
Open
7 tasks done

useDark + vue3 + vite + element-plus在build后切换无效 #3917

BG7ZAG opened this issue Apr 9, 2024 · 0 comments

Comments

@BG7ZAG
Copy link

BG7ZAG commented Apr 9, 2024

Describe the bug

在本地dev运行时正常切换dark和light,但build后切换无效,观察html上的class发现没有新的样式类出现,
不知道是不是我没有配置对,请求大佬指点,谢谢!

Reproduction

https://github.com/BG7ZAG/vueuse-useDark-err-demo

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz
    Memory: 1.18 GB / 15.73 GB
  Binaries:
    Node: 20.11.1 - ~\.nvmd\versions\20.11.1\node.EXE
    npm: 10.2.4 - ~\.nvmd\versions\20.11.1\npm.CMD
    pnpm: 8.15.4 - ~\.nvmd\versions\20.11.1\pnpm.CMD
  Browsers:
    Edge: Chromium (123.0.2420.81)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    @vueuse/core: ^10.9.0 => 10.9.0
    vue: ^3.4.21 => 3.4.21

Used Package Manager

pnpm

Validations

@dosubot dosubot bot added the vue: upstream label Apr 9, 2024
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