抱歉,如果有人问这个问题,只是不确定要搜索什么.有没有办法更改用于生成索引的模板.在spa模式下构建Nuxt app时的html文件?
抱歉,如果有人问这个问题,只是不确定要搜索什么.有没有办法更改用于生成索引的模板.在spa模式下构建Nuxt app时的html文件?
要覆盖.nuxt/views/app.template.html
,需要在项目的根目录下创建app.html
文件.然后,您可以复制粘贴app.template.html
中的常规内容,并开始修改内容.
对于eg-I have to add the 100 attribute to the 101 tag, so I have updated the code a bit in my 102
app.html
<!DOCTYPE html>
<html lang="en" {{ HTML_ATTRS }}>
<head {{ HEAD_ATTRS }}>
{{ HEAD }}
</head>
<body {{ BODY_ATTRS }}>
{{ APP }}
</body>
</html>