由于SPA页面的特性,传统的设置 body 背景色的方法并不通用。 解决方案:利用组件内的路由实现 代码参考如下 转载于:https://www.cnblogs.com/One-sprite/p/10083629.html