|
@@ -31,13 +31,13 @@
|
|
|
<a-dropdown>
|
|
|
<div class="language-toggle">
|
|
|
<img src="@/public/images/icons/language-toggle__icon.png" />
|
|
|
- <span>{{ localeInfo && localeInfo.name }}</span>
|
|
|
+ <span>{{ localeInfo && localeInfo.title }}</span>
|
|
|
</div>
|
|
|
<template #overlay>
|
|
|
<a-menu>
|
|
|
<a-menu-item v-for="(item, index) in systemStore.localeList" :key="index">
|
|
|
<div @click="onLocaleChange(item)">
|
|
|
- <span class="text_hover_underline">{{ item.name }}</span>
|
|
|
+ <span class="text_hover_underline">{{ item.title }}</span>
|
|
|
</div>
|
|
|
</a-menu-item>
|
|
|
</a-menu>
|
|
@@ -47,7 +47,7 @@
|
|
|
<span>{{ $t('system["登录"]') }}</span>
|
|
|
</div>
|
|
|
<div class="download-btn-normal">
|
|
|
- <a-popconfirm :showCancel="false">
|
|
|
+ <a-popconfirm placement="bottom" :showCancel="false">
|
|
|
<template #okButton></template>
|
|
|
<template #icon><question-circle-outlined style="color: red" /></template>
|
|
|
<template #title>
|
|
@@ -101,6 +101,9 @@
|
|
|
? 'text_hover_underline--active'
|
|
|
: '',
|
|
|
]"
|
|
|
+ :style="{
|
|
|
+ color: item.textColor ? item.textColor : '',
|
|
|
+ }"
|
|
|
>{{ $t(`textLink["${item.text}"]`) }}</span
|
|
|
>
|
|
|
</li>
|
|
@@ -169,22 +172,22 @@ import { useI18n } from 'vue-i18n'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
import { MenuOutlined, HomeOutlined } from '@ant-design/icons-vue'
|
|
|
import useSystemStore from '@/stores/useSystemStore'
|
|
|
-import type { ILocale } from '@/stores/useSystemStore'
|
|
|
+import type { ILangs } from '@/stores/useSystemStore'
|
|
|
import useLinkList from './hooks/useLinkList'
|
|
|
|
|
|
// 国际化
|
|
|
const i18n = useI18n()
|
|
|
const systemStore = useSystemStore()
|
|
|
-const { localeInfo, localeList } = storeToRefs(systemStore)
|
|
|
+const { localeInfo, localeList, locale } = storeToRefs(systemStore)
|
|
|
|
|
|
// 文本链接
|
|
|
const { textLinkList, textLinkList2, route, router, currentPath, currentId, handleTextLinkClick } =
|
|
|
useLinkList()
|
|
|
|
|
|
// 语言切换回调
|
|
|
-const onLocaleChange = function (info: ILocale) {
|
|
|
+const onLocaleChange = function (info: ILangs) {
|
|
|
systemStore.toggleLocale(info)
|
|
|
- i18n.locale.value = info.value
|
|
|
+ i18n.locale.value = info.code
|
|
|
const historyLength = window.history.length
|
|
|
if (historyLength > 1) {
|
|
|
window.history.go(-historyLength + 2)
|
|
@@ -377,6 +380,12 @@ function handleDownload() {
|
|
|
}
|
|
|
</style>
|
|
|
|
|
|
+<style>
|
|
|
+:where(.css-dev-only-do-not-override-1p3hq3p).ant-popconfirm .ant-popconfirm-message-title {
|
|
|
+ margin-inline-start: 0;
|
|
|
+}
|
|
|
+</style>
|
|
|
+
|
|
|
<style lang="less" scoped>
|
|
|
@import url(./css/header@1200.less);
|
|
|
@import url(./css/header@1024.less);
|