Commit 70c7b567 authored by 夏敏伟's avatar 夏敏伟

修改bug

parent 6310a61f
......@@ -221,9 +221,9 @@ export default {
this.selectItem = item;
startLoading();
queryLiterature(item.originId).then(res => {
if(res.list.length>0){
if (res.list.length > 0) {
previewPdf('LiteraturePDF', res.list[0].name);
}else{
} else {
this.$message.warning('暂未找到此文件!');
}
endLoading();
......@@ -268,7 +268,9 @@ export default {
activated() {
queryCollectionFolder(this.userInfo.account).then(res => {
this.collectionFolder = res;
if (res.length > 0) {
res[0].id && this.queryCollectionFolderNews(res[0].id, 0);
}
})
.catch((err) => {
this.$message.warning(err.message);
......
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