feat logo and name

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ironsp
2026-05-26 17:04:20 +08:00
parent c761be6e31
commit d840737c5e
2 changed files with 23 additions and 2 deletions

View File

@@ -26,6 +26,14 @@ export const initSSE = (url: any) => {
watch(data, () => {
if (!data.value) return;
// 打印接收到的 SSE 消息
console.log('=== SSE 接收到消息 ===');
console.log('消息内容:', data.value);
console.log('消息类型:', typeof data.value);
console.log('接收时间:', new Date().toLocaleString());
console.log('=====================');
useNoticeStore().addNotice({
message: data.value,
read: false,

View File

@@ -6,7 +6,7 @@
<div class="login-brand__logo-wrap">
<img class="login-brand__logo" :src="logoUrl" alt="" />
</div>
<h1 class="login-brand__title">可视化电子围栏管理系统</h1>
<h1 class="login-brand__title">{{ logoName }}</h1>
<p class="login-brand__subtitle">智能安防 · 实时监控 · 高效管理</p>
</div>
</div>
@@ -80,7 +80,8 @@ import { LoginData, TenantVO } from '@/api/types';
import { to } from 'await-to-js';
import { HttpStatus } from '@/enums/RespEnum';
import { useI18n } from 'vue-i18n';
import logoUrl from '@/assets/logo/logo.png';
import logo from '@/assets/logo/logo.png';
import { getDemo } from '@/api/systemList/index';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -224,6 +225,18 @@ onMounted(() => {
initTenantList();
getLoginData();
});
// 获取Logo图片
const logoUrl = ref();
const logoName = ref();
onMounted(() => {
getDemo().then((res) => {
console.log('系统11111111111', res);
logoName.value = res.data.name;
logoUrl.value = res.data.url;
});
});
</script>
<style lang="scss" scoped>