Commit 4cff3665 by Lyan

优化

parent 993c6bcc
...@@ -466,11 +466,11 @@ export default { ...@@ -466,11 +466,11 @@ export default {
method: 'post' method: 'post'
}).then(({data}) => { }).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
if (!item.directpath || item.directpath === null) { // if (!item.directpath || item.directpath === null) {
window.open(this.$store.state.config.urls + '/News/msg?id=' + item.id + '&token=' + data.data, '_blank') window.open(this.$store.state.config.urls + '/News/msg?id=' + item.id + '&token=' + data.data, '_blank')
} else { // } else {
window.open(item.directpath + '&token=' + data.data, '_blank') // window.open(item.directpath + '&token=' + data.data, '_blank')
} // }
} else { } else {
this.$message.error('获取失败') this.$message.error('获取失败')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment