mirror of
https://git.unlock-music.dev/um/web.git
synced 2025-07-07 06:52:09 +08:00
Add Tips for .kgm while using "file:" protocol
This commit is contained in:
20
src/App.vue
20
src/App.vue
@ -100,16 +100,16 @@
|
||||
} catch (e) {
|
||||
}
|
||||
if ((!!updateInfo && process.env.NODE_ENV === 'production') && (!!updateInfo.HttpsFound ||
|
||||
(!!updateInfo.Found && window.location.protocol !== "https:"))) {
|
||||
this.$notify.warning({
|
||||
title: '发现更新',
|
||||
message: '发现新版本 v' + updateInfo.Version +
|
||||
'<br/>更新详情:' + updateInfo.Detail +
|
||||
'<br/><a target="_blank" href="' + updateInfo.URL + '">获取更新</a>',
|
||||
dangerouslyUseHTMLString: true,
|
||||
duration: 15000,
|
||||
position: 'top-left'
|
||||
});
|
||||
(!!updateInfo.Found && document.location.protocol !== "https:"))) {
|
||||
this.$notify.warning({
|
||||
title: '发现更新',
|
||||
message: '发现新版本 v' + updateInfo.Version +
|
||||
'<br/>更新详情:' + updateInfo.Detail +
|
||||
'<br/><a target="_blank" href="' + updateInfo.URL + '">获取更新</a>',
|
||||
dangerouslyUseHTMLString: true,
|
||||
duration: 15000,
|
||||
position: 'top-left'
|
||||
});
|
||||
} else {
|
||||
this.$notify.info({
|
||||
title: '离线使用',
|
||||
|
Reference in New Issue
Block a user