diff --git a/package.json b/package.json index 1a0a410..c0dd0f2 100644 --- a/package.json +++ b/package.json @@ -6,13 +6,7 @@ "scripts": { "dev": "vite serve --mode development", "build:dev": "vite build --mode development &&vue-tsc --noEmit", - "build:prod": "vite build --mode production &&vue-tsc --noEmit", - "prepare": "husky install", - "lint:eslint": "eslint --fix --ext .ts,.js,.vue ./src ", - "lint:prettier": "prettier --write \"**/*.{js,cjs,ts,json,tsx,css,less,scss,vue,html,md}\"", - "lint:stylelint": "stylelint \"**/*.{css,scss,vue}\" --fix", - "lint:lint-staged": "lint-staged", - "commit": "git-cz" + "build:prod": "vite build --mode production &&vue-tsc --noEmit" }, "config": { "commitizen": { diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 5fadf44..7060603 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -80,11 +80,12 @@ import { useAppStore } from "@/store/modules/app"; import { useTagsViewStore } from "@/store/modules/tagsView"; import { useUserStore } from "@/store/modules/user"; import { useI18n } from "vue-i18n"; +import LangSelect from "@/components/LangSelect/index.vue"; + const { locale } = useI18n(); // 当前语言状态与国际化组件 const lanChange = ref(locale); -import LangSelect from "@/components/LangSelect/index.vue"; const appStore = useAppStore(); const tagsViewStore = useTagsViewStore(); diff --git a/src/views/createVideo/index.vue b/src/views/createVideo/index.vue index ed9145e..d9c5c36 100644 --- a/src/views/createVideo/index.vue +++ b/src/views/createVideo/index.vue @@ -141,6 +141,7 @@