小程序优化文件路径

引用绝对路径

App({
// 绝对路径
require (url) {
return require(url)
},
})
const {require} = getApp()
const $API = require('/utils/api')