✨Add shortcut can't download tip #76
This commit is contained in:
parent
6cc467699f
commit
f73ea87cb0
@ -36,9 +36,9 @@
|
|||||||
},
|
},
|
||||||
"page": {
|
"page": {
|
||||||
"video": {
|
"video": {
|
||||||
"play": "Play",
|
"play": "Play",
|
||||||
"download": "Download",
|
"download": "Download",
|
||||||
"link": "Download link"
|
"link": "Download link"
|
||||||
},
|
},
|
||||||
"text": {
|
"text": {
|
||||||
"loading": "Loading..."
|
"loading": "Loading..."
|
||||||
@ -52,5 +52,8 @@
|
|||||||
},
|
},
|
||||||
"checkVersion": {
|
"checkVersion": {
|
||||||
"tips": "New version detected, <a href='${url}'>Go to GitHub</a>"
|
"tips": "New version detected, <a href='${url}'>Go to GitHub</a>"
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"shortcut_not_down": "Shortcut can't open/download"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -52,5 +52,8 @@
|
|||||||
},
|
},
|
||||||
"checkVersion": {
|
"checkVersion": {
|
||||||
"tips": "检测到有新版本,<a href='${url}'>前往GitHub</a>"
|
"tips": "检测到有新版本,<a href='${url}'>前往GitHub</a>"
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"shortcut_not_down": "快捷方式无法打开/下载"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,5 +52,8 @@
|
|||||||
},
|
},
|
||||||
"checkVersion": {
|
"checkVersion": {
|
||||||
"tips": "檢測到有新版本,<a href='${url}'>前往GitHub</a>"
|
"tips": "檢測到有新版本,<a href='${url}'>前往GitHub</a>"
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"shortcut_not_down": "快捷方式無法打開/下載"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -262,6 +262,15 @@ export default {
|
|||||||
this.$viewer = viewer;
|
this.$viewer = viewer;
|
||||||
},
|
},
|
||||||
action (file, target) {
|
action (file, target) {
|
||||||
|
// If it is a shortcut, the prompt cannot be downloaded
|
||||||
|
if (file.mimeType === "application/vnd.google-apps.shortcut") {
|
||||||
|
this.$notify({
|
||||||
|
title: this.$t("notify.title"),
|
||||||
|
message: this.$t("error.shortcut_not_down"),
|
||||||
|
type: "warning",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (file.mimeType.startsWith("image/")) {
|
if (file.mimeType.startsWith("image/")) {
|
||||||
this.viewer = true;
|
this.viewer = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user