Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Draw.io,我想强制使用本地设备作为存储。这可以通过传递 URL 参数来完成,但我可以通过环境变量来完成吗?还是有其他方法?
我找到了一种方法来做你想做的事,但不是使用环境变量而是修改 index.hhtml。我猜如果你问这个问题,你使用的是离线版本,所以你可以编辑 index.html。
您只需编辑 var 参数。
前 :
var params = window.location.search.slice(1).split('&');
后 :
var params = ["dev=1", "local=1", "offline=1"];