vue项目浏览器运行的标签如何修改
在Vue项目中,浏览器运行的标签可以通过修改public/index.html文件中的<title>标签来改变。
例如,将标签修改为"我的Vue项目":
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>我的Vue项目</title> <!-- 修改这里 -->
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
修改完成后,重新运行项目,浏览器标签将显示为"我的Vue项目"。
原文地址: https://www.cveoy.top/t/topic/h3xe 著作权归作者所有。请勿转载和采集!