refactor: 全局规范化调整文件夹和文件命名(代码无改动)
This commit is contained in:
parent
8648f16ed8
commit
5993e8d7d0
@ -7,7 +7,7 @@ export function configMockPlugin(isBuild) {
|
||||
localEnabled: !isBuild,
|
||||
prodEnabled: isBuild,
|
||||
injectCode: `
|
||||
import { setupProdMockServer } from '../mock/_createProdServer';
|
||||
import { setupProdMockServer } from '../mock/_create-prod-server';
|
||||
setupProdMockServer();
|
||||
`,
|
||||
})
|
||||
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
@ -1,6 +1,6 @@
|
||||
import { createPageLoadingGuard } from './pageLoadingGuard'
|
||||
import { createPageTitleGuard } from './pageTitleGuard'
|
||||
import { createPermissionGuard } from './permissionGuard'
|
||||
import { createPageLoadingGuard } from './page-loading-guard'
|
||||
import { createPageTitleGuard } from './page-title-guard'
|
||||
import { createPermissionGuard } from './permission-guard'
|
||||
|
||||
export function setupRouterGuard(router) {
|
||||
createPageLoadingGuard(router)
|
||||
|
2
src/utils/cache/index.js
vendored
2
src/utils/cache/index.js
vendored
@ -1,4 +1,4 @@
|
||||
import { createWebStorage } from './webStorage'
|
||||
import { createWebStorage } from './web-storage'
|
||||
|
||||
export const createLocalStorage = function (option = {}) {
|
||||
return createWebStorage({ prefixKey: option.prefixKey || '', storage: localStorage })
|
||||
|
@ -7,7 +7,7 @@ const { replace } = useRouter()
|
||||
<div class="page-404">
|
||||
<n-result status="404" description="抱歉,您访问的页面不存在。">
|
||||
<template #icon>
|
||||
<img src="@/assets/imgs/404/404.png" width="500" />
|
||||
<img src="@/assets/images/404.png" width="500" />
|
||||
</template>
|
||||
<template #footer>
|
||||
<n-button color="#002d6f" @click="replace('/')">返回首页</n-button>
|
||||
|
Loading…
Reference in New Issue
Block a user