Skip to content

Commit

Permalink
Revert "截图界面细节优化"
Browse files Browse the repository at this point in the history
This reverts commit 8da2790.
  • Loading branch information
ZhaoZuohong committed Oct 12, 2023
1 parent 8da2790 commit 1ed6574
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ui/src/pages/Plan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,21 @@ async function save() {
const blob = await screenshot()
const form_data = new FormData()
form_data.append('img', blob)
const resp = await axios.post(`${import.meta.env.VITE_HTTP_URL}/dialog/save-img`, form_data)
const resp = await axios.post(
`${import.meta.env.VITE_HTTP_URL}/dialog/save-img`,
form_data
)
message.info(resp.data)
}
async function copy() {
const blob = await screenshot()
const form_data = new FormData()
form_data.append('img', blob)
const resp = await axios.post(`${import.meta.env.VITE_HTTP_URL}/copy-img`, form_data)
const resp = await axios.post(
`${import.meta.env.VITE_HTTP_URL}/copy-img`,
form_data
)
message.info(resp.data)
}
</script>
Expand All @@ -88,7 +94,7 @@ async function copy() {
<n-button @click="open_plan_file">...</n-button>
</td>
<td>
<div v-if="generating_image">正在生成图片……</div>
<n-button v-if="generating_image" disabled>正在生成</n-button>
<template v-else>
<n-button @click="copy">复制图片</n-button>
<n-button @click="save">保存图片</n-button>
Expand Down

0 comments on commit 1ed6574

Please sign in to comment.