mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
refactor(login): 移除过时的类型注释
注释中提到的临时类型方案已被移除,现在直接使用强类型的RootState
This commit is contained in:
parent
5caf3c2722
commit
c0692e8baf
1 changed files with 0 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue