When dva,axios or fetch initiates a request for a public network, will the host name be added automatically?

problem description

as the question
Local port http://localhost:8000/-sharp/
http request is automatically preceded by http://localhost:8000/-sharp/
so that the interface address cannot be found
clipboard.png

clipboard.png

clipboard.png

clipboard.png

the environmental background of the problems and what methods you have tried

node version 8.10
dva-cli version 0.9.2
dva version 2.4.0
roadhog version 2.4.5
.webpackrc configuration
{

"disableCSSModules": true,
"extraBabelPlugins": [["import", { "libraryName": "antd-mobile", "style": true }]],
"ignoreMomentLocale": true

}

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

the request address I want is http://test.abbyun.com/dolphi.

.
Apr.29,2021

http:// you are missing a slash

Menu