Commit bb5e2c13 by Lyan

全文搜索

parent a1f76e47
...@@ -24,12 +24,35 @@ ...@@ -24,12 +24,35 @@
<script> <script>
export default { export default {
props: ['list'], props: ['list'],
data() {
return {
}
},
methods: { methods: {
handelMsg(id) { handelMsg(id) {
this.InfoFn(id)
},
async InfoFn(id) {
const params = {
id:id,
};
const listRes =
await this.$api.news.newsInfo(params);
const { returnCode, data } = listRes;
if (returnCode === "0") {
let directpath=data.directpath
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
this.$router.push({ this.$router.push({
path: '/News/Msg', path: `/news/msg?id=${id}`,
query:{id:id}
}); });
}
}
}, },
changeText(val){ changeText(val){
val=(val ||'').replace(/<[^>]+>/g,"").replace(/<br\/>/g, '\n').replace(/&nbsp;/g, ''); val=(val ||'').replace(/<[^>]+>/g,"").replace(/<br\/>/g, '\n').replace(/&nbsp;/g, '');
......
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