mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 16:16:42 +08:00
fix restart ui
This commit is contained in:
@@ -15,6 +15,9 @@ const createConfirm = useConfirm()
|
|||||||
// 提示框
|
// 提示框
|
||||||
const $toast = useToast()
|
const $toast = useToast()
|
||||||
|
|
||||||
|
// 进度框
|
||||||
|
const progressDialog = ref(false)
|
||||||
|
|
||||||
// 执行注销操作
|
// 执行注销操作
|
||||||
function logout() {
|
function logout() {
|
||||||
// 清除登录状态信息
|
// 清除登录状态信息
|
||||||
@@ -50,6 +53,8 @@ async function restart() {
|
|||||||
catch (error) {
|
catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
}
|
}
|
||||||
|
// 显示等待框
|
||||||
|
progressDialog.value = true
|
||||||
// 注销
|
// 注销
|
||||||
logout()
|
logout()
|
||||||
}
|
}
|
||||||
@@ -162,4 +167,23 @@ const avatar = store.state.auth.avatar
|
|||||||
</VMenu>
|
</VMenu>
|
||||||
<!-- !SECTION -->
|
<!-- !SECTION -->
|
||||||
</VAvatar>
|
</VAvatar>
|
||||||
|
<!-- 重启进度框 -->
|
||||||
|
<vDialog
|
||||||
|
v-model="progressDialog"
|
||||||
|
:scrim="false"
|
||||||
|
width="400"
|
||||||
|
>
|
||||||
|
<vCard
|
||||||
|
color="primary"
|
||||||
|
>
|
||||||
|
<vCardText class="text-center">
|
||||||
|
正在重启 ...
|
||||||
|
<vProgressLinear
|
||||||
|
indeterminate
|
||||||
|
color="white"
|
||||||
|
class="mb-0 mt-1"
|
||||||
|
/>
|
||||||
|
</vCardText>
|
||||||
|
</vCard>
|
||||||
|
</vDialog>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user