|
@@ -12,7 +12,6 @@
|
|
|
</el-badge>
|
|
</el-badge>
|
|
|
<app-icon icon="Tickets" @click="openComponent('report')" />
|
|
<app-icon icon="Tickets" @click="openComponent('report')" />
|
|
|
<app-icon icon="Setting" @click="openComponent('setting')" />
|
|
<app-icon icon="Setting" @click="openComponent('setting')" />
|
|
|
- <span @click="changeLuanguage">{{ i18n.global.locale === 'zh-CN' ? t('mine.setting.chinese') : t('mine.setting.english') }}</span>
|
|
|
|
|
<!-- <app-icon icon="g-icon-minimize" @click="exitFullSreen" v-if="fullScreen" />
|
|
<!-- <app-icon icon="g-icon-minimize" @click="exitFullSreen" v-if="fullScreen" />
|
|
|
<app-icon icon="g-icon-maximize" @click="setFullSreen" v-else /> -->
|
|
<app-icon icon="g-icon-maximize" @click="setFullSreen" v-else /> -->
|
|
|
</div>
|
|
</div>
|
|
@@ -40,7 +39,6 @@
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { ref, onMounted, computed, defineAsyncComponent } from 'vue'
|
|
import { ref, onMounted, computed, defineAsyncComponent } from 'vue'
|
|
|
import { SwitchButton, Unlock, Avatar } from '@element-plus/icons-vue'
|
|
import { SwitchButton, Unlock, Avatar } from '@element-plus/icons-vue'
|
|
|
-import { ElMessageBox } from 'element-plus'
|
|
|
|
|
import { getFileUrl, diffDays } from '@/filters'
|
|
import { getFileUrl, diffDays } from '@/filters'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { useLoginStore, useUserStore, useGlobalStore, useNoticeStore, i18n } from '@/stores'
|
|
import { useLoginStore, useUserStore, useGlobalStore, useNoticeStore, i18n } from '@/stores'
|
|
@@ -67,20 +65,6 @@ const fullScreen = ref(false)
|
|
|
|
|
|
|
|
const { t } = i18n.global
|
|
const { t } = i18n.global
|
|
|
|
|
|
|
|
-const changeLuanguage = () => {
|
|
|
|
|
- ElMessageBox.confirm(t('user.login.tips6'), t('common.tips'), { confirmButtonText: t('common.ikonw') }).then(() => {
|
|
|
|
|
- if (i18n.global.locale === 'zh-CN') {
|
|
|
|
|
- i18n.global.locale = 'en-US'
|
|
|
|
|
- } else {
|
|
|
|
|
- i18n.global.locale = 'zh-CN'
|
|
|
|
|
- }
|
|
|
|
|
- /// 设置语言
|
|
|
|
|
- localData.setValue('appLanguage', i18n.global.locale)
|
|
|
|
|
- /// 重新登出
|
|
|
|
|
- eventBus.$emit('LogoutNotify')
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
// 用户头像
|
|
// 用户头像
|
|
|
const userAvatar = computed(() => {
|
|
const userAvatar = computed(() => {
|
|
|
const file = userStore.userInfo?.headurl
|
|
const file = userStore.userInfo?.headurl
|