|
@@ -339,7 +339,16 @@ export default {
|
|
window.TagView = TagView;
|
|
window.TagView = TagView;
|
|
// 监听手动点击事件
|
|
// 监听手动点击事件
|
|
TagView.on("click", (e) => {
|
|
TagView.on("click", (e) => {
|
|
- this.openHotFu(e.data);
|
|
|
|
|
|
+ const isLink = e.data.title.startsWith('(link)')
|
|
|
|
+
|
|
|
|
+ if (isLink) {
|
|
|
|
+ const regex = new RegExp(`<\/?p[^>]*>`, 'g')
|
|
|
|
+ const link = e.data.content.replace(regex, '')
|
|
|
|
+ const isHttp = link.startsWith('http')
|
|
|
|
+ window.location.href = isHttp ? link : `https://scene.4dage.com${link}`
|
|
|
|
+ } else {
|
|
|
|
+ this.openHotFu(e.data);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
|