Skip to content

Commit

Permalink
fix(front): logo图片刷新时出现短暂时间空图问题修复及title刷新增加loading效果
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 13127
  • Loading branch information
hyunfa authored and wyyalt committed Jul 25, 2024
1 parent 0297353 commit 25f3572
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/index-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>GSEKit(DEV)</title>
<title>loading...</title>
</head>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ TITLE }}</title>
<title>loading...</title>
</head>
<body>
<div id="app"></div>
Expand Down
3 changes: 2 additions & 1 deletion web/src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<script>
import { mapState, mapMutations, mapActions } from 'vuex';
import AuthSelect from '@/components/Auth/AuthSelect';
import logoSrc from '@/assets/images/favicon.png';
export default {
components: {
Expand All @@ -77,7 +78,7 @@ export default {
return this.$store.state.platform.i18n.name || this.appName
},
appLogo() {
return this.$store.state.platform.appLogo
return this.$store.state.platform.appLogo || logoSrc;
}
},
watch: {
Expand Down

0 comments on commit 25f3572

Please sign in to comment.