Skip to content

Commit

Permalink
窗口控制适配windows;微调
Browse files Browse the repository at this point in the history
  • Loading branch information
sunzongzheng committed Nov 9, 2017
1 parent af0ff8c commit b6ca016
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
osx_image: xcode8.3

dist: trusty
sudo: false
sudo: true

language: node_js
node_js: "8"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# music player
# music player [![Build Status](https://travis-ci.org/sunzongzheng/player.svg?branch=master)](https://travis-ci.org/sunzongzheng/player)
- 歌曲[Api](https://github.com/sunzongzheng/musicAPI)涵盖网易云、QQ音乐、虾米
- 界面仿QQ音乐
- Mac > Windows > Linux都会逐步适配,移动端在计划中
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "player",
"version": "0.0.0",
"version": "1.0.10",
"author": "sunzongzheng <[email protected]>",
"description": "An electron-vue project",
"license": "CC0-1.0",
Expand All @@ -27,7 +27,7 @@
"build": {
"productName": "player",
"appId": "org.sunzongzheng.player",
"artifactName": "${name}.${os}.${ext}",
"artifactName": "${name}-${version}-${os}.${ext}",
"directories": {
"output": "releases"
},
Expand Down
6 changes: 5 additions & 1 deletion src/main/ipcEvent/viewCtrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ export default {
on (win, op) {
switch (op) {
case 'close':
win.hide()
if (process.platform === 'darwin') {
win.hide()
} else {
win.minimize()
}
break
case 'minimize':
win.minimize()
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/view/home/components/lyrics/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@
watch: {
'play.info' () {
console.log('change')
this.$refs.main.scrollTop = 0
if (this.$refs.main) {
this.$refs.main.scrollTop = 0
}
}
},
methods: {
Expand Down

0 comments on commit b6ca016

Please sign in to comment.