摘要:
vue.config.js module.exports = { // 修改标题 chainWebpack: (config) => { config.plugin("html").tap((args) => { args[0].title = "New Name"; return args; }) 阅读全文
摘要:
1. 导航菜单设置成router 模式 2. 面包屑组件监听路由变化 // Bread.vue <template> <div class="bread-crumb-container"> <el-breadcrumb separator-class="el-icon-arrow-right"> < 阅读全文
摘要:
<div> <button id="btn">测试</button> <a href="public/favicon.ico" download="fav.icon" id="test">asf</a> </div> <script> document.getElementById('btn').o 阅读全文
摘要:
vue项目中,把已经写好的html直接放进去,而不经过编译,直接跳转html页面 项目根目录里,如果有public文件夹,则直接放进public文件夹里,与index.html 同级开始,按照项目路径访问。 例如:在public新建pages/test.html, 则: 浏览器访问路径是: http 阅读全文
摘要:
下载 @fancyapps/ui npm install @fancyapps/ui -S 新建组件src/components/FancyApp.vue, 文件代码如下: <template> <div class="fancy-app"> <div :id="mainId" class="mai 阅读全文