在ServerModule單元里
1、在Uses中添加IOUtils;
2、在on BeforeInit中添加:
//發布時使用,將extjs相關目錄放到執行文件相同的目錄
if DirectoryExists(TPath.GetDirectoryName(ParamStr(0))+'\ext-6.5.3') then
begin
Self.UniRoot :='uni-1.50.0.1479'; //隨版本改變
Self.ExtRoot :='ext-6.5.3'
end;