Skip to content

Commit

Permalink
feat: 新增加载load界面
Browse files Browse the repository at this point in the history
  • Loading branch information
zhufengfj committed Sep 23, 2022
1 parent a9128a9 commit 0206317
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/views/home/load-placeholder.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
<script setup>
import { NButton } from 'naive-ui'
import framework from "@/global/framework"
import {useRouter} from "vue-router"
const router = useRouter()
const currentRouteMenu = framework.getCurrentMenuRoute()
function refreshPage(){
framework.clickNavItem(currentRouteMenu.value?.pageId, (a, needNavs) => {
if (needNavs.length > 0) {
router.push(needNavs[0].to)
}
})
}
</script>
<template>
Expand All @@ -9,7 +21,7 @@ import { NButton } from 'naive-ui'
</div>
<div class="load-tip-text">长时间未响应点击刷新</div>
<div style="width: 200px">
<n-button secondary block type="primary">
<n-button @click="refreshPage" secondary block type="primary">
刷新页面
</n-button>
</div>
Expand Down

1 comment on commit 0206317

@vercel
Copy link

@vercel vercel bot commented on 0206317 Sep 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.