uni-app 全局变量实现的4种方式 一、公用模块 二、挂载 Vue.prototype 三、globalData 四、Vuex https://www.imooc.com/article/293282