@@ -80,11 +80,12 @@ import { useAppStore } from "@/store/modules/app"; | |||||
import { useTagsViewStore } from "@/store/modules/tagsView"; | import { useTagsViewStore } from "@/store/modules/tagsView"; | ||||
import { useUserStore } from "@/store/modules/user"; | import { useUserStore } from "@/store/modules/user"; | ||||
import { useI18n } from "vue-i18n"; | import { useI18n } from "vue-i18n"; | ||||
import LangSelect from "@/components/LangSelect/index.vue"; | |||||
const { locale } = useI18n(); | const { locale } = useI18n(); | ||||
// 当前语言状态与国际化组件 | // 当前语言状态与国际化组件 | ||||
const lanChange = ref(locale); | const lanChange = ref(locale); | ||||
import LangSelect from "@/components/LangSelect/index.vue"; | |||||
const appStore = useAppStore(); | const appStore = useAppStore(); | ||||
const tagsViewStore = useTagsViewStore(); | const tagsViewStore = useTagsViewStore(); | ||||
@@ -141,6 +141,7 @@ | |||||
</template> | </template> | ||||
<script setup> | <script setup> | ||||
import { ref } from "vue"; | import { ref } from "vue"; | ||||
import { getCurrentInstance } from "vue"; | |||||
// 标题 | // 标题 | ||||
let title = ref(""); | let title = ref(""); | ||||
// 上传图片 | // 上传图片 | ||||
@@ -150,7 +151,7 @@ function changeFile(e) { | |||||
} | } | ||||
// $t在script中的使用 | // $t在script中的使用 | ||||
import { getCurrentInstance } from "vue"; | |||||
const { | const { | ||||
appContext: { | appContext: { | ||||
config: { globalProperties }, | config: { globalProperties }, | ||||
@@ -95,11 +95,11 @@ | |||||
<script setup> | <script setup> | ||||
import { useI18n } from "vue-i18n"; | import { useI18n } from "vue-i18n"; | ||||
import { useRouter } from "vue-router"; | |||||
const { locale } = useI18n(); | const { locale } = useI18n(); | ||||
const currentLan = ref(locale); | const currentLan = ref(locale); | ||||
import { useRouter } from "vue-router"; | |||||
const router = useRouter(); | const router = useRouter(); | ||||
function routerTo(url) { | function routerTo(url) { | ||||
router.push(url); | router.push(url); | ||||
@@ -147,7 +147,7 @@ function routerTo(url) { | |||||
.password { | .password { | ||||
display: inline-block; | display: inline-block; | ||||
float: right; | |||||
// float: right; | |||||
padding: 2px 8px; | padding: 2px 8px; | ||||
border: 1px solid #000; | border: 1px solid #000; | ||||
border-radius: 5px; | border-radius: 5px; | ||||