vue uni-app 公共組件封裝,防止每一個頁面重複導入

1.公共插件 實現目標,將公共組件或者網絡請求直接在this中調用,不須要再頁面引用vue #例如網絡請求 var _this = this; this.api.userInfo({ token: '' } #通用工具 _this.utils.showBoxFunNot("是否退出登錄", function() { console.log("肯定")
相關文章
相關標籤/搜索