如何在本地导入“md”图标,类似于如何在这篇文章中导入 mdi 图标: 如何在 Nuxt 中的 nuxt.config.js 中导入 mdi 图标模块
标准包或自定义存储库 https://github.com/jossef/material-design-icons-iconfont 我正在使用 nuxt-vuetify 插件。我所有的尝试都失败了,例如添加以下内容:
nuxt.config.js
css: ['~/assets/main.css', './node_modules/material-design-icons-iconfont/dist/material-design-icons.css'],
vuetify: {
customVariables: ['~/assets/variables.scss'],
treeShake: true,
defaultAssets: {
font: false,
icons: 'md',// this just fetches it from the repo
// icons: {iconfont: 'md'} // this doesn't seem to work for me
enter code here
},
theme: {
dark: false,
themes: {
light: {
primary: '#fec655',
},
}
}
},
Run Code Online (Sandbox Code Playgroud) 我对如何修改 Djoser 的注册端点感到困惑。我想做的就是向端点添加范围限制,但我不明白如何覆盖它。文档上的此页面讨论了它:https ://djoser.readthedocs.io/en/2.1.0/ adjustment.html 但它似乎已经过时了?今天如何使用 UserViewSet 来完成并确保 url 按预期工作?
我已经看到一些关于如何删除右下角的传单属性的帖子。传单的创建者似乎对此没有任何问题,因此为了节省空间,我想删除我的传单。Here is a thread on it,但遗憾的是没有与 Vue 相关的答案。 https://gis.stackexchange.com/questions/192088/how-to-remove-attribution-in-leaflet
我正在使用 nuxt,但如果它针对 Vue,我将非常感谢帮助。l-tile-layer 有一个 attribute-prop ,它确实可以帮助我添加属性,但是删除它让我意识到属性似乎连接到 l-map 组件,因为它在没有图块层的情况下可见。
建议?