fix: bugs

This commit is contained in:
qier222 2021-01-31 20:40:19 +08:00
parent 160737e736
commit 51d11e8316
5 changed files with 30 additions and 21 deletions

View File

@ -178,6 +178,10 @@ a {
::-webkit-scrollbar-thumb {
-webkit-border-radius: 10px;
border-radius: 10px;
background: rgba(128, 128, 128, 0.38);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
background: var(--color-secondary-bg);
}

View File

@ -133,18 +133,18 @@
></vue-slider>
</div>
</div>
</div>
</div>
</div>
<button-icon
class="lyrics-button"
title="Lyrics"
title="歌词"
style="margin-left: 12px"
@click.native.stop="toggleLyrics"
><svg-icon icon-class="arrow-up"
/></button-icon>
</div>
</div>
</div>
</div>
</template>
<script>
@ -402,6 +402,7 @@ export default {
display: flex;
justify-content: center;
align-items: center;
padding: 0 8px;
.button-icon {
margin: 0 8px;
}
@ -447,12 +448,12 @@ export default {
margin-left: 16px;
}
.lyrics-button {
position: fixed;
right: 18px;
.svg-icon {
height: 20px;
width: 20px;
}
}
// .lyrics-button {
// position: fixed;
// right: 18px;
// .svg-icon {
// height: 20px;
// width: 20px;
// }
// }
</style>

View File

@ -277,7 +277,7 @@ export default class {
_nextTrackCallback() {
this._scrobble(true);
if (this.repeatMode === "one") {
this._howler.play();
this._replaceCurrentTrack(this._currentTrack.id);
} else {
this.playNextTrack();
}

View File

@ -136,7 +136,7 @@ export default {
return true;
},
validateEmail() {
const emailReg = /^[A-Za-z0-9]+([_][A-Za-z0-9]+)*@([A-Za-z0-9]+\.)+[A-Za-z]{2,6}$/;
const emailReg = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
if (
this.email === "" ||
this.password === "" ||

View File

@ -69,13 +69,17 @@ module.exports = {
},
mac: {
target: [
"dmg",
{
target: "dmg",
arch: ["arm64", "x64"],
},
{
target: "zip",
// arch: ["x64", "arm64"],
arch: ["arm64", "x64"],
// arch: ["universal"]
},
],
// artifactName: "${productName}-${version}-${os}-${arch}.${ext}",
artifactName: "${productName}-${arch}.${ext}",
category: "public.app-category.music",
darkModeSupport: true,
},