diff --git a/build/vite/plugin/mock.js b/build/vite/plugin/mock.js index 9df33da..6c2d583 100644 --- a/build/vite/plugin/mock.js +++ b/build/vite/plugin/mock.js @@ -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(); `, }) diff --git a/mock/_createProdServer.js b/mock/_create-prod-server.js similarity index 100% rename from mock/_createProdServer.js rename to mock/_create-prod-server.js diff --git a/src/assets/imgs/404/404.png b/src/assets/images/404.png similarity index 100% rename from src/assets/imgs/404/404.png rename to src/assets/images/404.png diff --git a/src/router/guard/index.js b/src/router/guard/index.js index a8d88cd..59d0dee 100644 --- a/src/router/guard/index.js +++ b/src/router/guard/index.js @@ -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) diff --git a/src/router/guard/pageLoadingGuard.js b/src/router/guard/page-loading-guard.js similarity index 100% rename from src/router/guard/pageLoadingGuard.js rename to src/router/guard/page-loading-guard.js diff --git a/src/router/guard/pageTitleGuard.js b/src/router/guard/page-title-guard.js similarity index 100% rename from src/router/guard/pageTitleGuard.js rename to src/router/guard/page-title-guard.js diff --git a/src/router/guard/permissionGuard.js b/src/router/guard/permission-guard.js similarity index 100% rename from src/router/guard/permissionGuard.js rename to src/router/guard/permission-guard.js diff --git a/src/utils/cache/index.js b/src/utils/cache/index.js index 427257c..6849483 100644 --- a/src/utils/cache/index.js +++ b/src/utils/cache/index.js @@ -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 }) diff --git a/src/utils/cache/webStorage.js b/src/utils/cache/web-storage.js similarity index 100% rename from src/utils/cache/webStorage.js rename to src/utils/cache/web-storage.js diff --git a/src/views/error-page/404.vue b/src/views/error-page/404.vue index b4e67bc..4a20113 100644 --- a/src/views/error-page/404.vue +++ b/src/views/error-page/404.vue @@ -7,7 +7,7 @@ const { replace } = useRouter()