refactor(login): 移除过时的类型注释

注释中提到的临时类型方案已被移除,现在直接使用强类型的RootState
This commit is contained in:
Minamiyama 2025-09-01 08:05:04 +08:00
parent 5caf3c2722
commit c0692e8baf

View file

@ -145,8 +145,6 @@ export default Vue.extend({
},
computed: {
// 这里用 mapState,为了不阻塞你先跑起来,state 暂时用 any。
// 若你后续给 Vuex 增强了 RootState 类型,这里可替换成强类型选择器。
...mapState({
allowUserRegister: (state: RootState): boolean => state.pubConfig.allowUserRegister,
enableMobileRegister: (state: RootState): boolean => state.pubConfig.enableMobileRegister,