fix(diy-notice): 优化跳转链接的判断逻辑
将原判断链接长度的方式改为检查实际存在的跳转字段,更准确识别有效跳转链接
This commit is contained in:
@@ -138,7 +138,7 @@ export default {
|
||||
});
|
||||
} else if (!item) {
|
||||
this.$util.redirectTo('/pages_tool/notice/list');
|
||||
} else if (item.link && Object.keys(item.link).length > 1) {
|
||||
} else if (item.link && (item.link.wap_url || item.link.appid || item.link.name)) {
|
||||
this.$util.diyRedirectTo(item.link);
|
||||
} else {
|
||||
// 如果不设置跳转链接,则点击弹框展示
|
||||
|
||||
Reference in New Issue
Block a user