problem description
after the vue dynamic route matching refresh, the css address introduced in index.html has changed.
before refresh:
Request URL: after http://localhost:8080/static/css/common.css
refresh:
Request URL: http://localhost:8080/job/static/css/common.css
related codes
/ / Please paste the code text below (do not replace the code with pictures)
-------------
router.js:
******
{
path: "/job/:id",
component: _import("pages/CareersDetail")
}
-------------
index.html(index.htmlstatic):
<link rel="stylesheet" type="text/css" href="./static/css/common.css"/>
----------------------