The .css address introduced in index.html after vue refresh has been replaced.

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"/>

----------------------
Aug.09,2021
Public styles introduced by

can also be finally solved in mian.js import;
, but that's it for introduction in index.html

.
Menu