添加 node_modules

@vue/runtime-core

  • getCurrentInstance
    • Vue3 setup中是无法访问到 this 的,所以需要借助该方法返回当前的实例对象
    • 该方法只在 setup、生命周期函数 中有效。在方法中无效