Skip to content

Commit

Permalink
perf: 新版 vue 已修复热更新导致的页面白屏问题,项目移除相关的代码
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Feb 6, 2024
1 parent 0f1afe1 commit 8c7f418
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions src/router/permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { ElMessage } from "element-plus"
import { setRouteChange } from "@/hooks/useRouteListener"
import { useTitle } from "@/hooks/useTitle"
import { getToken } from "@/utils/cache/cookies"
import { fixBlankPage } from "@/utils/fix-blank-page"
import routeSettings from "@/config/route"
import isWhiteList from "@/config/white-list"
import NProgress from "nprogress"
Expand All @@ -15,7 +14,6 @@ const { setTitle } = useTitle()
NProgress.configure({ showSpinner: false })

router.beforeEach(async (to, _from, next) => {
fixBlankPage()
NProgress.start()
const userStore = useUserStoreHook()
const permissionStore = usePermissionStoreHook()
Expand Down
6 changes: 0 additions & 6 deletions src/store/modules/tags-view.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ref, watchEffect } from "vue"
import store from "@/store"
import { defineStore } from "pinia"
import { useSettingsStore } from "./settings"
import { type RouteLocationNormalized } from "vue-router"
Expand Down Expand Up @@ -94,8 +93,3 @@ export const useTagsViewStore = defineStore("tags-view", () => {
delAllCachedViews
}
})

/** 在 setup 外使用 */
export function useTagsViewStoreHook() {
return useTagsViewStore(store)
}
15 changes: 0 additions & 15 deletions src/utils/fix-blank-page.ts

This file was deleted.

0 comments on commit 8c7f418

Please sign in to comment.