mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
fix: alert issue on Windows by using native messageBox (#509)
* Fix alert issue on Windows by using native messageBox * Update related docs for alert fix * Remove unlocalized hint
This commit is contained in:
parent
025e28399e
commit
1e7274e97f
3 changed files with 42 additions and 8 deletions
|
|
@ -199,6 +199,7 @@ import {
|
|||
} from "@/api/playlist";
|
||||
import { getTrackDetail } from "@/api/track";
|
||||
import { isAccountLoggedIn } from "@/utils/auth";
|
||||
import nativeAlert from "@/utils/nativeAlert";
|
||||
|
||||
import ButtonTwoTone from "@/components/ButtonTwoTone.vue";
|
||||
import ContextMenu from "@/components/ContextMenu.vue";
|
||||
|
|
@ -467,16 +468,16 @@ export default {
|
|||
if (confirmation === true) {
|
||||
deletePlaylist(this.playlist.id).then((data) => {
|
||||
if (data.code === 200) {
|
||||
alert(`已删除歌单 ${this.playlist.name}`);
|
||||
nativeAlert(`已删除歌单 ${this.playlist.name}`);
|
||||
this.$router.go(-1);
|
||||
} else {
|
||||
alert("发生错误");
|
||||
nativeAlert("发生错误");
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
editPlaylist() {
|
||||
alert("此功能开发中");
|
||||
nativeAlert("此功能开发中");
|
||||
},
|
||||
searchInPlaylist() {
|
||||
this.displaySearchInPlaylist = !this.displaySearchInPlaylist;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue