My typescript compiler can't compile json key with camel case

新手上路,请多包涵

My dev tool: visual studio code & npm & powershell
My dev pc: Window 11
Here is the secnario I encountered
please notice the loginName in black background of vscode is camel case and the loginname in white background of chrome is lowercase
I just type npm run serve

After some digging,I still have no clue, I added lowercase key loginname into the Json, and below is its illusration

Please help me ,thank you ahead.

阅读 1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题