允许配置登录注册页面的自定义 Logo

This commit is contained in:
RockYang
2025-01-07 15:13:34 +08:00
parent 9f98491368
commit 8250e876a5
5 changed files with 24 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="right flex-center">
<div class="logo">
<img src="@/assets/img/logo.png" alt="" />
<el-image :src="logo" alt="" style="max-width: 300px; max-height: 300px" />
</div>
<div>welcome</div>
<footer-bar />
@@ -10,6 +10,22 @@
<script setup>
import FooterBar from "@/components/FooterBar.vue";
import { getSystemInfo } from "@/store/cache";
import { ref } from "vue";
const logo = ref("");
const title = ref("");
getSystemInfo()
.then((res) => {
logo.value = res.data.logo;
title.value = res.data.title;
})
.catch((err) => {
console.log(err);
logo.value = "/images/logo.png";
title.value = "Geek-AI";
});
</script>
<style lang="stylus" scoped>