feat: 项目自动选中、重命名接口与长配置值展开;页面显示版本号 v1.0.<commit> build <时间>
build-and-deploy / build-and-deploy (push) Successful in 28s
build-and-deploy / build-and-deploy (push) Successful in 28s
This commit is contained in:
+12
-1
@@ -51,8 +51,19 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="login-footer">Registry Config Center</div>
|
||||
<div class="login-footer">Registry Config Center <span id="login-version" class="login-version"></span></div>
|
||||
</div>
|
||||
<script>
|
||||
// 加载版本号
|
||||
fetch("/api/version")
|
||||
.then(function (r) { return r.json(); })
|
||||
.then(function (data) {
|
||||
if (data && data.success && data.data && data.data.version) {
|
||||
document.getElementById("login-version").textContent = data.data.version;
|
||||
}
|
||||
})
|
||||
.catch(function () {});
|
||||
</script>
|
||||
<script>
|
||||
// 已登录则直接跳转
|
||||
if (localStorage.getItem("registry_token")) {
|
||||
|
||||
Reference in New Issue
Block a user