{{ $t('auto.version.releaseTime') }}:
{{ versionInfo.releaseTime }}
@@ -37,6 +41,7 @@ export default {
dialogVisible: false,
versionInfo: {
version: '',
+ title: '',
releaseTime: '',
content: ''
}
@@ -65,19 +70,17 @@ export default {
getCurrentVersion().then(res => {
if (!res.enabled) return
this.versionInfo.version = res.version || serverVersion
+ this.versionInfo.title = res.title || ''
this.versionInfo.releaseTime = res.releaseTime || ''
- this.fetchVersionContent()
+ this.versionInfo.content = res.content || ''
this.dialogVisible = true
})
},
- fetchVersionContent() {
- // 从站内信获取最新的版本通知内容
- // 内容通过后端 /api/version/current 返回的 releaseTime 已含,
- // 如果需要额外展示详细内容,可调用通知接口查询
- },
handleConfirm() {
localStorage.setItem('lastSeenVersion', this.versionInfo.version)
this.dialogVisible = false
+ // 点击后跳转到版本信息页面
+ this.$router.push('/system/version')
}
}
}
diff --git a/acs2/nladmin-ui/src/views/login.vue b/acs2/nladmin-ui/src/views/login.vue
index c1e48e6..7b5f440 100644
--- a/acs2/nladmin-ui/src/views/login.vue
+++ b/acs2/nladmin-ui/src/views/login.vue
@@ -3,22 +3,21 @@
-
+ :particle-opacity="0.7"
+ :particles-number="80"
+ shape-type="circle"
+ :particle-size="4"
+ lines-color="#dedede"
+ :lines-width="1"
+ :line-linked="true"
+ :line-opacity="0.4"
+ :lines-distance="150"
+ :move-speed="3"
+ :hover-effect="true"
+ hover-mode="grab"
+ :click-effect="true"
+ click-mode="push"
+ />
{{ title }}
@@ -187,6 +186,7 @@ export default {
}
this.$store.dispatch('Login', user).then(() => {
this.loading = false
+ localStorage.setItem('needVersionCheck', '1')
window.location.href = this.redirect
// if (this.redirect === 'http://localhost:8013/dashboard'){
// window.location.href = this.redirect
diff --git a/acs2/nladmin-ui/src/views/system/version/index.vue b/acs2/nladmin-ui/src/views/system/version/index.vue
index 46d6647..2b66d6e 100644
--- a/acs2/nladmin-ui/src/views/system/version/index.vue
+++ b/acs2/nladmin-ui/src/views/system/version/index.vue
@@ -1,34 +1,5 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('auto.version.release') }}
-
- {{ $t('auto.common.Reset') }}
-
-
-
-