Skip to content

Commit 53e7d03

Browse files
CV-DevlauJavaLionLi
authored andcommitted
!245 update 页面中的标题都从配置项获取
* update 规范环境变量命名 * update 将页面中的标题都从配置项获取
1 parent 9c84bf2 commit 53e7d03

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# 页面标题
22
VITE_APP_TITLE = RuoYi-Vue-Plus多租户管理系统
3+
VITE_APP_LOGO_TITLE = RuoYi-Vue-Plus
34

45
# 开发环境配置
56
VITE_APP_ENV = 'development'

.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# 页面标题
22
VITE_APP_TITLE = RuoYi-Vue-Plus多租户管理系统
3+
VITE_APP_LOGO_TITLE = RuoYi-Vue-Plus
34

45
# 生产环境配置
56
VITE_APP_ENV = 'production'

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="renderer" content="webkit" />
77
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
88
<link rel="icon" href="/favicon.ico" />
9-
<title>RuoYi-Vue-Plus多租户管理系统</title>
9+
<title>%VITE_APP_TITLE%</title>
1010
<!--[if lt IE 11
1111
]><script>
1212
window.location.href = '/html/ie.html';

src/layout/components/Sidebar/Logo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ defineProps({
3434
}
3535
});
3636
37-
const title = ref('RuoYi-Vue-Plus');
37+
const title = import.meta.env.VITE_APP_LOGO_TITLE;
3838
const settingsStore = useSettingsStore();
3939
const sideTheme = computed(() => settingsStore.sideTheme);
4040
</script>

0 commit comments

Comments
 (0)