a.js
// a.js
module.exports = {
list: async () => {
return await axios.get(getIntelligentPlatform)
},
}
b.js
// b.js
const { list } = require("../models/meibrain")
//
list().then(res => {
console.log(res.data.obj)
})
I hope list
in b.js
file require
is the requested data