随笔分类 -  Taro

摘要:config/index.js const path = require('path') // eslint-disable-line const config = { alias: { '@/api': path.resolve(__dirname, '..', 'src/api'), '@/co 阅读全文
posted @ 2021-04-28 14:02 tulintao 阅读(97) 评论(0) 推荐(0)
摘要:onLaunch () { if (wx.canIUse('getUpdateManager')) { const updateManager = wx.getUpdateManager() updateManager.onCheckForUpdate(function (res) { if (re 阅读全文
posted @ 2021-04-25 17:49 tulintao 阅读(143) 评论(0) 推荐(0)
摘要:export const request = (url, method = "GET", data) => { let _url = `${baseUrlPrefix}${url}`; return new Promise((resolve, reject) => { Taro.showLoadin 阅读全文
posted @ 2021-04-25 08:53 tulintao 阅读(1239) 评论(0) 推荐(0)
摘要:前提是已经安装好了taro3.x的项目 使用taro UI 在taro3.x版本出来的时候,一直以为taro UI的文档会跟着taro一起更新,但是如果照着taro UI的文档照猫画虎,并且引入了组件,这个时候你就会发现一大堆的TS错误,差不多就是告诉你引入组件错误 taro-iconfont-cl 阅读全文
posted @ 2020-11-25 14:38 tulintao 阅读(1724) 评论(0) 推荐(0)