Commit 0b65a66c by 田爽

政策法规链接问题

parent 4ffeacd7
...@@ -303,13 +303,13 @@ export default { ...@@ -303,13 +303,13 @@ 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) {
ursStr = this.$store.state.config.urls + '/Knowledge/Statuteinfo?id=' + item.id + '&token=' + data.data ursStr = this.$store.state.config.urls + '/Knowledge/Statuteinfo?id=' + item.id + '&token=' + data.data
this.$set(this.urlsJson, item.title, ursStr) this.$set(this.urlsJson, item.title, ursStr)
} else { // } else {
ursStr = item.directpath + '&token=' + data.data // ursStr = item.directpath + '&token=' + data.data
this.$set(this.urlsJson, item.title, ursStr) // this.$set(this.urlsJson, item.title, ursStr)
} // }
} }
}) })
}, },
...@@ -320,11 +320,11 @@ export default { ...@@ -320,11 +320,11 @@ export default {
}).then(({data}) => { }).then(({data}) => {
console.log(data) console.log(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 + '/Knowledge/Statuteinfo?id=' + item.id + '&token=' + data.data, '_blank') window.open(this.$store.state.config.urls + '/Knowledge/Statuteinfo?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