比较暴力的解决方法:(xxx as any)...... 举个栗子:(state.queryParams.dictType as any) = state.defaultDictType; 这就不会出现警告 还在学习TS中