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) { // 修改主题状态