vueComponent / ant-design-vue-pro

👨🏻‍💻👩🏻‍💻 Use Ant Design Vue like a Pro! (vue2)
https://pro.antdv.com
MIT License
10.63k stars 3.09k forks source link

fix: The theme color does not take effect on the login page #1420

Open KaiKaio opened 1 year ago

KaiKaio commented 1 year ago

First of all, thank you for your contribution! 😄

Pull request will be merged after one of collaborators approve. Please makes sure that these form are filled before submitting your pull request, thank you!

这个变动的性质是

需求背景

  1. 描述相关需求的来源。
  2. 要解决的问题。
  3. 相关的 issue 讨论链接。 Related issue https://github.com/vueComponent/ant-design-vue-pro/issues/1419

实现方案和 API(非新功能可选)

原有 @ant-design-vue/pro-layout 的 updateTheme 在 BasicLayout 中首次调用,而 Login.vue 不在 BasicLayout 下,故未能触发主题色更新

对用户的影响和可能的风险(非新功能可选)

  1. 无影响,只是将 BasicLayout 执行的片段移动到了 App.vue 中

Changelog 描述(非新功能可选)

  1. fix: The theme color does not take effect on the login page
  2. 修复主题色首屏在登录页未能生效缺陷

请求合并前的自查清单

后续计划(非新功能可选)

如果这个提交后面还有相关的其他提交和跟进信息,可以写在这里。

KaiKaio commented 1 year ago

Related issue #1419

JaneYork commented 6 months ago

BasicLayout.vue 执行的的 updateTheme() 方法提前至 App.vue 的 created 声明周期中

切换多主题,不生效,可能原因有哪些呢?

image