You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
466 B
33 lines
466 B
<template>
|
|
<div>
|
|
<u-parse :content="content"></u-parse>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { getNoticeList } from '@/api/user.js';
|
|
export default{
|
|
data(){
|
|
return{
|
|
content:'',
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
console.log(option);
|
|
getNoticeList().then(res=>{
|
|
|
|
let list= res.data.list;
|
|
list.forEach(item=>{
|
|
if(item.notice_id==option.id){
|
|
this.content = item.notice_content
|
|
}
|
|
})
|
|
|
|
})
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
</style> |