Browse Source

切换按钮显示窗口背景

liuwei 4 years ago
parent
commit
7d7f484ac1
2 changed files with 2 additions and 1 deletions
  1. 1 1
      .gitignore
  2. 1 0
      src/renderer/components/Window.vue

+ 1 - 1
.gitignore

@@ -10,4 +10,4 @@ npm-debug.log
 npm-debug.log.*
 thumbs.db
 !.gitkeep
-static
+static/*

+ 1 - 0
src/renderer/components/Window.vue

@@ -68,6 +68,7 @@
                         if(item.ID === item2){
                             item.IsVisibility = true
                             showWindows.push(item)
+                            this.$refs[item.ID][0].style.backgroundImage = item.BackIcon ? 'url('+`${this.staticUrl}/Data/${item.BackIcon}`+')' : null
                         }
                     })
                 }