想在路由中做一个加载中的动画。
想了想啊,路由加载能花多长时间,主要是页面加载呐。页面打开时显示加载中,页面加载完成关闭加载中遮罩层。
方案一:
使用NProgress。
方案二:
使用ElementUI。
考虑到不希望安装新的插件,使用ElementUi。
Hi Girl
tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true