diff --git a/package.json b/package.json index 82c8144343d5f..30a4ec97bb54f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "crawlab-ui", - "version": "0.6.0-8", + "version": "0.6.0-9", "private": false, "author": { "name": "Marvin Zhang", diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue index 8428a8bbbe560..2cd498da62941 100644 --- a/src/views/login/Login.vue +++ b/src/views/login/Login.vue @@ -14,10 +14,10 @@ Crawlab
- {{ t('global.edition.community') }} + {{ t(systemInfo.edition || '') }}
- v0.6.0 + {{ systemInfo.version }}
@@ -136,6 +136,9 @@ export default defineComponent({ setup() { // store const store = useStore(); + const { + common: commonState, + } = store.state as RootStoreState; // current route const route = useRoute(); @@ -270,6 +273,8 @@ export default defineComponent({ await store.dispatch('user/getMe'); }; + const systemInfo = computed(() => commonState.systemInfo || {}); + onMounted(() => { // initialize canvas if (window.innerWidth >= 1024) { @@ -301,6 +306,7 @@ export default defineComponent({ logo, setLang, onLogin, + systemInfo, t, }; },