refactor: 全局规范化调整文件夹和文件命名(代码无改动)

This commit is contained in:
张传龙 2022-04-01 17:41:07 +08:00
parent 8648f16ed8
commit 5993e8d7d0
10 changed files with 6 additions and 6 deletions

View File

@ -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();
`,
})

View File

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -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)

View File

@ -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 })

View File

@ -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>