iview-project default title (main.js) introduced Util plug-page rewrite of
import Util from './libs/util';
But behind the increase Util default page title - the word "Home", such as:
Into their own, to read:
Util.title = function(title) { title = title ? title + ' - 总裁助手文档' : '总裁助手文档'; window.document.title = title; }; router.beforeEach((to, from, next) => { iView.LoadingBar.start(); Util.title(to.meta.title); next(); }); router.afterEach((to, from, next) => { iView.LoadingBar.finish(); window.scrollTo(0, 0); });
After rewriting became