解决后效果: 点击 IDEA 右下角 小头像,去配置检查: 将 Javascript - General 下的三处勾去掉,即可 Missing import statementUnresolved javascript variableUnused local symbol