tremble 3 年之前
父节点
当前提交
4cb05740ec
共有 4 个文件被更改,包括 13 次插入2 次删除
  1. 2 2
      public/SuperTwo/js/main_2020_show.js
  2. 6 0
      src/App.vue
  3. 3 0
      src/components/welcome.vue
  4. 2 0
      src/views/Home.vue

+ 2 - 2
public/SuperTwo/js/main_2020_show.js

@@ -15787,9 +15787,9 @@ window.Modernizr = function(n, e, t) {
         }
         hot.prototype.dealIntersect = function(state){
             if(state){
-                this.titleElem.addClass('hotactive'); 
+                this.titleElem && this.titleElem.addClass('hotactive'); 
             }else{
-                this.titleElem.removeClass('hotactive');
+                this.titleElem && this.titleElem.removeClass('hotactive');
             }
             this.changeHighlightTex(state)
         }

+ 6 - 0
src/App.vue

@@ -24,6 +24,12 @@ export default {
     welcome
   },
   mounted(){
+    window.addEventListener('popstate',()=>{
+      if (this.isWel) {
+        this.isWel = false
+        this.changZINDEX = -10000
+      }
+    },false)
     
     this.$bus.$on('reset', ()=>{
       window.location.reload()

+ 3 - 0
src/components/welcome.vue

@@ -77,6 +77,9 @@ export default {
   width: 100%;
   height: 100%;
   overflow: hidden;
+  background-color: #635c40;
+  display: flex;
+  align-items: center;
   > video {
     width: 100%;
   }

+ 2 - 0
src/views/Home.vue

@@ -52,6 +52,8 @@ export default {
   position: relative;
   background-size: 100% auto;
   background-repeat: no-repeat;
+  background-position: center left;
+  background-color: #635c40;
   overflow: hidden;
   .title_bar {
     width: 26%;