更新阅读论文

master
pan 4 years ago
parent e7e7b6737a
commit 6928ef4fef
  1. 10
      pages/index/document.vue
  2. 1
      pages/index/read.vue

@ -136,22 +136,16 @@
fileId:item.fileId fileId:item.fileId
},function(res) { },function(res) {
if(res.code==='200'){ if(res.code==='200'){
fetch(`${that.GLOBAL.server_address}${res.msg}`).then(res=>res.text()).then(res=>{ item.content=res.msg
item.content=res
loadingInstance.close()
that.$store.commit('menus/read') that.$store.commit('menus/read')
that.$store.commit('read/open', item) that.$store.commit('read/open', item)
that.$router.push(that.localePath('/read')) that.$router.push(that.localePath('/read'))
}).catch(err=>{
console.error(err)
loadingInstance.close() loadingInstance.close()
})
}else{ }else{
loadingInstance.close()
that.$message.error(that.$t('error_500').toString()) that.$message.error(that.$t('error_500').toString())
} }
loadingInstance.close()
}) })
}, },
query(){ query(){
let that=this let that=this

@ -493,6 +493,7 @@
noteContent: this.note_form.note_content, noteContent: this.note_form.note_content,
paperId: that.activeContent.id, paperId: that.activeContent.id,
fileId: that.activeContent.fileId, fileId: that.activeContent.fileId,
originalText:that.note_form.original_text,
content: that.pre.innerHTML content: that.pre.innerHTML
},function(res) { },function(res) {
if(res.code==='200'){ if(res.code==='200'){

Loading…
Cancel
Save