报错处理

This commit is contained in:
zhbaor 2024-10-10 10:48:01 +08:00
parent 585f777832
commit 91ab92af3f
3 changed files with 29 additions and 16 deletions

View file

@ -1,6 +1,8 @@
<script setup>
const running = inject('running')
const notification = useNotification()
async function rm_site_packages() {
running.value = true
notification['info']({
content: '提示',
meta: '开始移除site-packages',
@ -12,6 +14,7 @@ async function rm_site_packages() {
meta: response,
duration: 3000
})
running.value = false
}
</script>