Commit bb5e2c13 by Lyan

全文搜索

parent a1f76e47
......@@ -24,12 +24,35 @@
<script>
export default {
props: ['list'],
data() {
return {
}
},
methods: {
handelMsg(id) {
this.$router.push({
path: '/News/Msg',
query:{id: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({
path: `/news/msg?id=${id}`,
});
}
}
},
changeText(val){
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