export default ({ command }: ConfigEnv): UserConfigExport => {
const myPlugin = () => ({
name: 'configure-server',
configureServer(server) {
server.middlewares.use((req, res, next) => {
// uni.request发起的任何请求都监听不到
console.log('req.url', req.url)
})
},
})
return {
plugins: [
myPlugin()
]
}
c***@qq.com
- 发布:2022-12-01 11:11
- 更新:2022-12-01 11:11
- 阅读:224
0 个回复