bate版本提交
This commit is contained in:
@@ -2,12 +2,7 @@
|
||||
<div class="main">
|
||||
<div class="container">
|
||||
<div class="right">
|
||||
<!-- 视频背景 -->
|
||||
<video autoplay loop muted class="background-video">
|
||||
<source :src="require('@/assets/video/bg.mp4')" type="video/mp4">
|
||||
您的浏览器不支持 HTML5 视频。
|
||||
</video>
|
||||
|
||||
<img src="../assets/logoBg.png" class="background-video" alt="">
|
||||
<!-- 设置 -->
|
||||
<div class="center-align">
|
||||
<div></div>
|
||||
@@ -95,9 +90,14 @@ const onSubmit = () => {
|
||||
password: formData.value.password,
|
||||
}).then((res) => {
|
||||
loading.close();
|
||||
setToken(res.currcode);
|
||||
setUser(res);
|
||||
router.push('/nav');
|
||||
if (res) {
|
||||
setToken(res.currcode);
|
||||
setUser(res);
|
||||
router.push('/nav');
|
||||
} else {
|
||||
alert('账号或密码错误');
|
||||
}
|
||||
|
||||
}).catch((err) => {
|
||||
loading.close();
|
||||
});
|
||||
@@ -106,14 +106,25 @@ const onSubmit = () => {
|
||||
|
||||
<style lang="less">
|
||||
.main {
|
||||
width: 100vw;
|
||||
width: 1600px;
|
||||
height: 900px;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
|
||||
/* 页面无法选中 */
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
width: 1600px;
|
||||
height: 900px;
|
||||
|
||||
.right {
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
width: 1600px;
|
||||
height: 900px;
|
||||
@@ -130,7 +141,6 @@ const onSubmit = () => {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
z-index: -1;
|
||||
/* 确保视频在内容之下 */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user