@@ -148,7 +166,17 @@
@@ -207,6 +235,7 @@ export default {
id: '',
title: '',
link: '',
+ linkCopy: false,
update: ''
}
};
@@ -260,7 +289,7 @@ export default {
* @param {object} datas 当前链接的数据
*/
openDetail(datas) {
- // 非链接
+ // 非链接 / 仅显示
if (datas.link === undefined) {
return;
}
@@ -270,6 +299,7 @@ export default {
detail.id = datas.id;
detail.title = datas.title;
detail.link = datas.link;
+ detail.linkCopy = datas.showOnly || false;
detail.update = datas.update || '无';
detail.show = true;
},
@@ -286,7 +316,11 @@ export default {
}
if (showOnly) {
- window.prompt('请复制后手动在新标签页中打开', link);
+ this.$message({
+ duration: 5000,
+ message: '请在链接详情中复制后手动打开',
+ type: 'warning'
+ });
} else {
window.open(link, '_blank');
}
@@ -362,7 +396,6 @@ export default {