import { getCurrentInstance } from "vue";
function getInstanceGlobals() {
  const ctx = getCurrentInstance();
  if (!ctx || !ctx.proxy) {
    console.warn("组件实例无效，无法获取全局对象");
    return null;
  }
  return ctx.proxy;
}
function getCurrentVueInstance() {
  return getInstanceGlobals();
}
export {
  getCurrentVueInstance,
  getInstanceGlobals
};
