mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
fix ui
This commit is contained in:
@@ -43,9 +43,13 @@ async function restart() {
|
|||||||
if (confirmed) {
|
if (confirmed) {
|
||||||
// 调用API重启
|
// 调用API重启
|
||||||
try {
|
try {
|
||||||
|
// 显示等待框
|
||||||
|
progressDialog.value = true
|
||||||
const result: { [key: string]: any } = await api.get('system/restart')
|
const result: { [key: string]: any } = await api.get('system/restart')
|
||||||
if (!result.success) {
|
if (!result.success) {
|
||||||
// 重启成功
|
// 隐藏等待框
|
||||||
|
progressDialog.value = false
|
||||||
|
// 重启不成功
|
||||||
$toast.error(result.message)
|
$toast.error(result.message)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -53,8 +57,6 @@ async function restart() {
|
|||||||
catch (error) {
|
catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
}
|
}
|
||||||
// 显示等待框
|
|
||||||
progressDialog.value = true
|
|
||||||
// 注销
|
// 注销
|
||||||
logout()
|
logout()
|
||||||
}
|
}
|
||||||
@@ -170,7 +172,6 @@ const avatar = store.state.auth.avatar
|
|||||||
<!-- 重启进度框 -->
|
<!-- 重启进度框 -->
|
||||||
<vDialog
|
<vDialog
|
||||||
v-model="progressDialog"
|
v-model="progressDialog"
|
||||||
:scrim="false"
|
|
||||||
width="400"
|
width="400"
|
||||||
>
|
>
|
||||||
<vCard
|
<vCard
|
||||||
|
|||||||
Reference in New Issue
Block a user