vue-element-admin icon indicating copy to clipboard operation
vue-element-admin copied to clipboard

在 api中的某个 js 文件中 使用 require('os').networkInterfaces() 结果是{} 对象

Open beijingGreateWall731 opened this issue 1 year ago • 0 comments

Bug report(问题描述)

api目录下的 request.js中 使用 require('os').networkInterfaces() 想获取 客户端IP,结果是 {} 里面没有值。

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

image image

Link to minimal reproduction(最小可在线还原demo)

Other relevant information(格外信息)

  • Your OS: win10
  • Node.js version:v16.13.2
  • vue-element-admin version:

beijingGreateWall731 avatar Jul 09 '22 09:07 beijingGreateWall731