本地环境可以用打包后找不到挂载的get,post方法 : 报错 TypeError: Cannot read property 'post' of undefined
app.config.globalProperties.$http = http 在main.js中能够打印出来, 问题也许出在 const { ctx } = getCurrentInstance();
使用 const { proxy } = getCurrentInstance(); 获取挂载方法是使用proxy.$http