移除site-packages
This commit is contained in:
parent
9c73b64423
commit
585f777832
3 changed files with 57 additions and 1 deletions
41
ui/src/pages/Fix.vue
Normal file
41
ui/src/pages/Fix.vue
Normal file
|
@ -0,0 +1,41 @@
|
|||
<script setup>
|
||||
const notification = useNotification()
|
||||
async function rm_site_packages() {
|
||||
notification['info']({
|
||||
content: '提示',
|
||||
meta: '开始移除site-packages',
|
||||
duration: 3000
|
||||
})
|
||||
const response = await pywebview.api.rm_site_packages()
|
||||
notification['info']({
|
||||
content: '提示',
|
||||
meta: response,
|
||||
duration: 3000
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<n-flex
|
||||
vertical
|
||||
style="
|
||||
gap: 16px;
|
||||
height: 100%;
|
||||
padding: 16px;
|
||||
box-sizing: border-box;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
"
|
||||
>
|
||||
<n-button class="fix-btn" type="error" secondary size="large" @click="rm_site_packages">
|
||||
移除 site-packages
|
||||
</n-button>
|
||||
</n-flex>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.fix-btn {
|
||||
width: 200px;
|
||||
height: 48px;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue