2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 12:40:25 +08:00

fix: 在线更新点不动

This commit is contained in:
耗子
2024-11-27 04:00:17 +08:00
parent 52587e9cb3
commit 5efeceecdb
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<script lang="ts" setup>
defineOptions({
name: 'home-index'
name: 'dashboard-index'
})
import { LineChart } from 'echarts/charts'
@@ -322,7 +322,7 @@ const handleRestartPanel = () => {
const handleUpdate = () => {
dashboard.checkUpdate().then((res) => {
if (res.data.update) {
router.push({ name: 'home-update' })
router.push({ name: 'dashboard-update' })
} else {
window.$message.success('当前已是最新版本')
}

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
defineOptions({
name: 'home-update'
name: 'dashboard-update'
})
import { MdPreview } from 'md-editor-v3'
@@ -43,7 +43,7 @@ const handleUpdate = () => {
setTimeout(() => {
window.location.reload()
}, 400)
router.push({ name: 'home-index' })
router.push({ name: 'dashboard-index' })
}, 2500)
})
.catch(() => {