1
李凌
2026-01-10 5f2b76b86980a149c9299acbf022c879e75b85bd
src/store/modules/vant.js
@@ -5,7 +5,7 @@
export default {
  namespaced: true,
  state: {
    theme: 'light' || getStorage('theme'), // 主题 light(白天)/dark(夜间)
    theme: getStorage('theme') || 'dark', // 主题 light(白天)/dark(夜间)
  },
  mutations: {
    "SET_THEME"(state, val) { // 修改主题状态