dongwei1125 / theme-dark

⚒️ element-ui 暗黑主题。🌚
https://dongwei1125.github.io/theme-dark/
23 stars 3 forks source link

样式并没有生效 #4

Open xxx-tea opened 1 month ago

xxx-tea commented 1 month ago

import Vue from 'vue' import App from './App.vue' import router from './router' import axios from "./utils/axios"; import {uuid} from "vue-uuid"; import globalMethods from "@/utils/globalMethods";

import ElementUI from 'element-ui' import "element-ui/packages/theme-chalk/src/index.scss"; Vue.use(ElementUI) import Darken from 'element-theme-darkplus/utils/darken' Vue.use(Darken(ElementUI))

Vue.use(globalMethods); Vue.config.productionTip = false; Vue.prototype.$uuid = uuid; Vue.prototype.$axios = axios;

new Vue({ router, render: h => h(App), }).$mount('#app')

dongwei1125 commented 2 weeks ago

默认引入样式不会立即生效的

根元素检查下 class 类名配置 dark 没

<html class="dark">