Skip to content

Commit

Permalink
history-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zprobot committed Aug 6, 2023
1 parent b9d655e commit 20bfdfc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/AeShow/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ const queryProtein = (input) => {
// console.log("222",input.value)
if (proteinTags.value.length != input.value.length) {
router.push({ path: "/ae/tissues", query: { protein: proteinTags.value } })
} else {
init()
}
init()
}
// watch route
Expand Down Expand Up @@ -391,7 +392,8 @@ const init = () => {
})
myChart.setOption(options)
setTimeout(() => {
let imgDataUrl = myChart.getDataURL({
if (protein.value.length !== 0) {
let imgDataUrl = myChart.getDataURL({
type: 'svg',
pixelRatio: 2,
backgroundColor: '#fff',
Expand All @@ -402,6 +404,7 @@ const init = () => {
url: imgDataUrl
}
imgs.value.unshift(urlFile)
}
},2000)
}
</script>
Expand Down

0 comments on commit 20bfdfc

Please sign in to comment.