diff --git a/config/constant.ts b/build/constant.ts similarity index 100% rename from config/constant.ts rename to build/constant.ts diff --git a/config/vite/plugins/autoImport.ts b/build/vite/plugins/autoImport.ts similarity index 100% rename from config/vite/plugins/autoImport.ts rename to build/vite/plugins/autoImport.ts diff --git a/config/vite/plugins/component.ts b/build/vite/plugins/component.ts similarity index 100% rename from config/vite/plugins/component.ts rename to build/vite/plugins/component.ts diff --git a/config/vite/plugins/compress.ts b/build/vite/plugins/compress.ts similarity index 100% rename from config/vite/plugins/compress.ts rename to build/vite/plugins/compress.ts diff --git a/config/vite/plugins/eruda.ts b/build/vite/plugins/eruda.ts similarity index 100% rename from config/vite/plugins/eruda.ts rename to build/vite/plugins/eruda.ts diff --git a/config/vite/plugins/imagemin.ts b/build/vite/plugins/imagemin.ts similarity index 100% rename from config/vite/plugins/imagemin.ts rename to build/vite/plugins/imagemin.ts diff --git a/config/vite/plugins/index.ts b/build/vite/plugins/index.ts similarity index 100% rename from config/vite/plugins/index.ts rename to build/vite/plugins/index.ts diff --git a/config/vite/plugins/mock.ts b/build/vite/plugins/mock.ts similarity index 100% rename from config/vite/plugins/mock.ts rename to build/vite/plugins/mock.ts diff --git a/config/vite/plugins/pages.ts b/build/vite/plugins/pages.ts similarity index 100% rename from config/vite/plugins/pages.ts rename to build/vite/plugins/pages.ts diff --git a/config/vite/plugins/progress.ts b/build/vite/plugins/progress.ts similarity index 100% rename from config/vite/plugins/progress.ts rename to build/vite/plugins/progress.ts diff --git a/config/vite/plugins/restart.ts b/build/vite/plugins/restart.ts similarity index 100% rename from config/vite/plugins/restart.ts rename to build/vite/plugins/restart.ts diff --git a/config/vite/plugins/styleImport.ts b/build/vite/plugins/styleImport.ts similarity index 100% rename from config/vite/plugins/styleImport.ts rename to build/vite/plugins/styleImport.ts diff --git a/config/vite/plugins/svgIcons.ts b/build/vite/plugins/svgIcons.ts similarity index 100% rename from config/vite/plugins/svgIcons.ts rename to build/vite/plugins/svgIcons.ts diff --git a/config/vite/plugins/visualizer.ts b/build/vite/plugins/visualizer.ts similarity index 100% rename from config/vite/plugins/visualizer.ts rename to build/vite/plugins/visualizer.ts diff --git a/config/vite/proxy.ts b/build/vite/proxy.ts similarity index 92% rename from config/vite/proxy.ts rename to build/vite/proxy.ts index f865ff9..5f60ac9 100644 --- a/config/vite/proxy.ts +++ b/build/vite/proxy.ts @@ -1,4 +1,4 @@ -import { API_BASE_URL, API_TARGET_URL, MOCK_API_BASE_URL, MOCK_API_TARGET_URL } from '../../config/constant'; +import { API_BASE_URL, API_TARGET_URL, MOCK_API_BASE_URL, MOCK_API_TARGET_URL } from '../constant'; import { ProxyOptions } from 'vite'; type ProxyTargetList = Record; diff --git a/package.json b/package.json index ff846bd..280bef6 100644 --- a/package.json +++ b/package.json @@ -33,10 +33,10 @@ "vue-router": "^4.1.5" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^5.38.1", - "@typescript-eslint/parser": "^5.38.1", + "@typescript-eslint/eslint-plugin": "^5.39.0", + "@typescript-eslint/parser": "^5.39.0", "@vitejs/plugin-legacy": "^2.2.0", - "@vitejs/plugin-vue": "^3.1.0", + "@vitejs/plugin-vue": "^3.1.2", "@vitejs/plugin-vue-jsx": "^2.0.1", "amfe-flexible": "^2.2.1", "autoprefixer": "^10.4.12", @@ -47,7 +47,7 @@ "eslint": "^8.24.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-prettier": "^4.2.1", - "eslint-plugin-vue": "^9.5.1", + "eslint-plugin-vue": "^9.6.0", "git-cz": "^4.9.0", "husky": "8.0.1", "lint-staged": "13.0.3", diff --git a/src/App.vue b/src/App.vue index 777ec29..dd05a67 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,14 +1,14 @@ - + + + diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 71ac9b4..053c08c 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -25,5 +25,3 @@ export function setLang(locale?: string) { } i18n.global.locale.value = locale || localStorage.getItem('lang') || ''; } - -setLang(); diff --git a/src/layout/basic/index.vue b/src/layout/basic/index.vue index 91049be..7cc8b49 100644 --- a/src/layout/basic/index.vue +++ b/src/layout/basic/index.vue @@ -1,16 +1,16 @@