页面添加显示特定的svg文件 #12
Labels
No Label
area/smartpanel
bug
done-waiting-confirmed
kind/feature
page/admin
page/simplepage
page/tab-admin
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: smartoilets-front/projects#12
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
如果页面有请求参数show,那么就去使用对应的svg文件
例如 https://smartoilets.net/simplepage/KWH/F2/female?profile=cleaner
那么就去配置接口 (https://smartoilets.net/openapi/api/config/get/type/{pagetype} ) 下找到 files.cleaner 字段
页面主题显示的svg文件则为 files.cleaner 而不是 files.svg
files 数据结构更新:
返回了一个对象而不仅仅是一个字段值了, 如果type为url,则前端可以直接使用, 如果type为 base64, 则应使用字段 base64 的内容,并且改内容为文件数据的base64串.
compress字段为压缩方式,仅适用于 type 为 base64 时使用,前端需要进行一次解压, 支持 gzip
https://smartoilets.net/openapi/api/config/get/type/simplepage/KWH/F2/