amisadmin / fastapi-amis-admin

FastAPI-Amis-Admin is a high-performance, efficient and easily extensible FastAPI admin framework. Inspired by django-admin, and has as many powerful functions as django-admin.
http://docs.amis.work
Apache License 2.0
1.1k stars 161 forks source link

自定义amis_cdn、amis_pkg的bug #183

Open zeroChen00 opened 3 months ago

zeroChen00 commented 3 months ago

默认的没有问题,很快 amis_cdn=https://unpkg.com amis_pkg=amis@6.3.0 后来用了 amis_pkg=amis@6.7.0,忽然登录跳转白屏。一开始怀疑是cdn超时慢(网络debug确实超时),换成了国内的cdn(https://unpkg.zhihu.com) 还是间歇性白屏,用默认的就好了。 反复试了很多次,amis_cdn、amis_pkg有一个是自定义就会间歇性出现登录跳转白屏(当前复现概率很高,之前不会。之前只是自定义用了6.7.0,一段时间都ok,忽然就开始加载缓慢,最后直接就是白屏),用默认的就不会。 site = MyAuthAdminSite(settings=Settings( database_url_async = database_url, site_path= '/WebAMS', site_title =' Web资产管理系统', site_icon ='https://www.baidu.com/favicon.ico', amis_cdn = "https://unpkg.zhihu.com", amis_pkg = "amis@6.7.0",

amis_cdn = "/static",

# amis_pkg = "amis6.7.0",

)) image

ps: 想过使用本地化方案,但是vue是写死在page.html里面的,要改包代码,适用性比较差。而且自定义amis_cdn会导致@被url编码,无法请求到文件。所以折腾了一大圈回来,还是默认的不动,啥事没有