update 国际化首页优化

master
yinq 4 weeks ago
parent b55da58fb3
commit cfa6064778

@ -23,7 +23,7 @@
<!-- <header-search id="header-search" class="right-menu-item" /> -->
<search-menu ref="searchMenuRef" />
<el-tooltip content="搜索" effect="dark" placement="bottom">
<el-tooltip :content="$t('baseFactoryInfo.search')" effect="dark" placement="bottom">
<div class="right-menu-item hover-effect" @click="openSearchMenu">
<svg-icon class-name="search-icon" icon-class="search" />
</div>

@ -1,6 +1,9 @@
import { createWebHistory, createRouter, RouteRecordRaw } from 'vue-router';
/* Layout */
import Layout from '@/layout/index.vue';
import i18n from '@/lang/index';
/**
* Note:
@ -126,7 +129,7 @@ export const constantRoutes: RouteRecordRaw[] = [
path: '/index',
component: () => import('@/views/index.vue'),
name: 'Index',
meta: { title: '首页', icon: 'dashboard', affix: true }
meta: { title: i18n.global.t('navbar.dashboard'), icon: 'dashboard', affix: true }
}
]
},

@ -0,0 +1,7 @@
<template>
</template>
<script setup lang="ts">
</script>

@ -71,10 +71,10 @@
<el-row :gutter="20">
<el-col :span="4" :xs="24">
<el-card class="box-card" style="height: 350px; position: relative">
<img
class="centered-image"
src="@/assets/images/electricityIcon.svg"
/>
<!-- <img-->
<!-- class="centered-image"-->
<!-- src="@/assets/images/electricityIcon.svg"-->
<!-- />-->
<div class="centered-text total-consumption-label">
总耗量
</div>

Loading…
Cancel
Save