mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-13 10:09:02 +08:00
fix: allow the name and icon of the web app to be set independently of that of the bot itself (#5225)
This commit is contained in:
parent
0391282b5e
commit
ef6034abfd
@ -65,13 +65,6 @@ class AppSite(Resource):
|
|||||||
if value is not None:
|
if value is not None:
|
||||||
setattr(site, attr_name, value)
|
setattr(site, attr_name, value)
|
||||||
|
|
||||||
if attr_name == 'title':
|
|
||||||
app_model.name = value
|
|
||||||
elif attr_name == 'icon':
|
|
||||||
app_model.icon = value
|
|
||||||
elif attr_name == 'icon_background':
|
|
||||||
app_model.icon_background = value
|
|
||||||
|
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
return site
|
return site
|
||||||
|
Loading…
x
Reference in New Issue
Block a user