封装全局公共变量

在main.js文件中,把请求地址封装成全局公共变量
image.png
打开nginx服务器
image.png
image.png
onShow 回调函数可以执行多次
image.png