Skip to content

Commit

Permalink
fix: 在线更新点不动
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Nov 26, 2024
1 parent 52587e9 commit 5efecee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/src/views/dashboard/IndexView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts" setup>
defineOptions({
name: 'home-index'
name: 'dashboard-index'
})
import { LineChart } from 'echarts/charts'
Expand Down Expand Up @@ -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('当前已是最新版本')
}
Expand Down
4 changes: 2 additions & 2 deletions web/src/views/dashboard/UpdateView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
defineOptions({
name: 'home-update'
name: 'dashboard-update'
})
import { MdPreview } from 'md-editor-v3'
Expand Down Expand Up @@ -43,7 +43,7 @@ const handleUpdate = () => {
setTimeout(() => {
window.location.reload()
}, 400)
router.push({ name: 'home-index' })
router.push({ name: 'dashboard-index' })
}, 2500)
})
.catch(() => {
Expand Down

0 comments on commit 5efecee

Please sign in to comment.