我正在用vue和vuex创建一个简单的用户登录系统。我的问题是,当我想在我的存储中达到错误状态时,它返回null。但是如果我在上面添加一个超时,它会返回我想要的结果。我在突变部分添加了一条console.log消息,还在我的组件方法中添加了控制台日志。输出看起来像这样; ? 突变发生在组件之后。我的店铺; const state = {};
const get
Overload 1 of 2, '(getter: ComputedGetter<unknown>, debugOptions?Type '() => WalletName | null' is not assignable to type 'ComputedGetter<WalletName>'.Type 'WalletName | null' is not assignable to type 'WalletName'