Skip to content

Commit

Permalink
fix(version): fixed version inconsistent issue in login page
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Sep 26, 2022
1 parent 56a61bb commit b77b091
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crawlab-ui",
"version": "0.6.0-8",
"version": "0.6.0-9",
"private": false,
"author": {
"name": "Marvin Zhang",
Expand Down
10 changes: 8 additions & 2 deletions src/views/login/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<span class="logo-title">Crawlab</span>
<span class="logo-sub-title">
<div class="logo-sub-title-block">
{{ t('global.edition.community') }}
{{ t(systemInfo.edition || '') }}
</div>
<div class="logo-sub-title-block">
v0.6.0
{{ systemInfo.version }}
</div>
</span>
</h3>
Expand Down Expand Up @@ -136,6 +136,9 @@ export default defineComponent({
setup() {
// store
const store = useStore();
const {
common: commonState,
} = store.state as RootStoreState;
// current route
const route = useRoute();
Expand Down Expand Up @@ -270,6 +273,8 @@ export default defineComponent({
await store.dispatch('user/getMe');
};
const systemInfo = computed<SystemInfo>(() => commonState.systemInfo || {});
onMounted(() => {
// initialize canvas
if (window.innerWidth >= 1024) {
Expand Down Expand Up @@ -301,6 +306,7 @@ export default defineComponent({
logo,
setLang,
onLogin,
systemInfo,
t,
};
},
Expand Down

0 comments on commit b77b091

Please sign in to comment.