Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: #5009

Closed
3 tasks done
jiuyi919 opened this issue Dec 3, 2024 · 2 comments
Closed
3 tasks done

FEATURE: #5009

jiuyi919 opened this issue Dec 3, 2024 · 2 comments

Comments

@jiuyi919
Copy link

jiuyi919 commented Dec 3, 2024

Version

Vben Admin V5

Description

WechatIMG2527
WechatIMG2528

Proposed Solution

圈中的网站标题建议修改为接口获取标题动态修改,现在的取的缓存,接口赋值无法自动更新

Alternatives Considered

No response

Additional Context

No response

Validations

  • Read the docs
  • Ensure the code is up to date. (Some issues have been fixed in the latest version)
  • I have searched the existing issues and checked that my issue does not duplicate any existing issues.
@jiuyi919
Copy link
Author

jiuyi919 commented Dec 3, 2024

以及logo也建议从接口获取

@mynetfan
Copy link
Collaborator

mynetfan commented Dec 4, 2024

大多数情况下,这两个地方应该是固定的。但如果你要动态修改本来就是可以的。

import { updatePreferences } from '@vben/preferences';

// 设置系统名称以及LOGO
  updatePreferences({
    app: {
      name: 'Vben Admin Pro',
    },
    logo: {
      source:
        'https://unpkg.com/@vbenjs/static-source@0.1.7/source/avatar-v1.webp',
    },
  });

@mynetfan mynetfan closed this as completed Dec 4, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants