mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 12:40:25 +08:00
fix: 在线更新点不动
This commit is contained in:
@@ -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('当前已是最新版本')
|
||||
}
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user