话不多说上效果: 简单来实现一下 下面是要设置背景变化的地方: <div class="login-container" :style="backgourndStyle"></div> computed:{ backgourndStyle: