This commit is contained in:
quantulr
2023-10-18 17:24:11 +08:00
parent 9c5dd0656a
commit f2878af4b3
5 changed files with 23 additions and 8 deletions

View File

@ -1,8 +1,10 @@
<template>
<div class="webHead">
<el-row>
<el-col :span="5">
<img src="@/assets/logo/logo.png" class="logo" />
<el-col :span="6">
<div class="site-title">
{{t('common.siteTitle')}}
</div>
</el-col>
<el-col :span="16">
<ul class="menu">
@ -394,6 +396,12 @@ dt {
}
.webHead {
.site-title{
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.switch-locale {
position: absolute;
top: 50%;

View File

@ -1,4 +1,6 @@
const common = {
siteTitle:
"Информационная платформа международного научно-технического сотрудничества и сотрудничества в области экологии Аральского моря",
home: "Главная",
search: "Поиск",
viewDetails: "Просмотреть детали",

View File

@ -1,4 +1,5 @@
export const common = {
siteTitle:"咸海生态治理国际科技产业合作信息化平台",
home: "首页",
search: "搜索",
viewDetails: "查看详情",

View File

@ -27,11 +27,12 @@
: variables.logoLightTitleColor,
}"
>
{{ title }}
<!-- {{ title }}-->
{{ t("common.siteTitle") }}
</h1>
</router-link>
<router-link v-else key="expand" class="sidebar-logo-link" to="/">
<img v-if="logo" :src="logo" class="sidebar-logo" />
<!-- <img v-if="logo" :src="logo" class="sidebar-logo" />-->
<h1
class="sidebar-title"
:style="{
@ -41,7 +42,8 @@
: variables.logoLightTitleColor,
}"
>
{{ title }}
<!-- {{ title }}-->
{{ t("common.siteTitle") }}
</h1>
</router-link>
</transition>
@ -53,6 +55,7 @@ import variables from "@/assets/styles/variables.module.scss";
import logo from "@/assets/logo/logo.png";
import logoSmall from "@/assets/logo/logo_small.png";
import useSettingsStore from "@/store/modules/settings";
import { useI18n } from "vue-i18n";
defineProps({
collapse: {
@ -60,7 +63,7 @@ defineProps({
required: true,
},
});
const { t } = useI18n();
const title = ref("数字科创大脑");
const settingsStore = useSettingsStore();
const sideTheme = computed(() => settingsStore.sideTheme);
@ -96,6 +99,7 @@ const sideTheme = computed(() => settingsStore.sideTheme);
vertical-align: middle;
margin-right: 12px;
}
& .sidebar-logo-small {
// width: 32px;
width: unset;

View File

@ -32,8 +32,8 @@ export default defineConfig(({ mode, command }) => {
// https://cn.vitejs.dev/config/#server-proxy
"/dev-api": {
// target: "http://101.34.131.16:1618",
// target: "http://101.34.131.16:1618",
target: "http://192.168.0.201:1618",
target: "http://101.34.131.16:81/api",
// target: "http://192.168.0.201:1618",
// target: 'http://172.18.3.127:1618',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, ""),