Proxy agent for antd-design-pro

  • Framework: antd-design-pro
  • configuration file: .webparkrc.js

clipboard.png

  • : services/api.js

clipboard.png

  • : fetchlocalhost

clipboard.png

.webpackrc

  • ---

npm start run:no-proxy

clipboard.png

how to solve this problem?

Sep.24,2021

run npm start run:no-proxy


antd pro closes the browser page and reopens it to ok. This is due to the cache pit. Note the following code in request.js

//.then(response => cachedSave(response, hashcode))
//cachedSave

I also encountered the same problem
how do you solve it


I would like to ask you how to achieve this kind of proxy why it is not easy to use ah, I think the document is written like this, please point out
clipboard.png


you only need to configure the proxy attribute in config.js. As long as proxy and mock url are different

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b41f93-2c5ef.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b41f93-2c5ef.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?