写的图片不出来:
background: url("/assets/img/bg2.jpg") no-repeat;
正确写法:
background: url('~@/assets/img/bg2.jpg') no-repeat center center;