多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
框架默认为history模式,生产环境时需要对应的nginx配置支撑。可手动修改为hash模式,值为'hash'。 ~~~ context.$configure.set('routerMode', 'history'); ~~~ history模式下,nginx的支撑配置如下: ~~~ location / { proxy_connect_timeout 900s; client_max_body_size 100m; proxy_send_timeout 900; proxy_read_timeout 900; proxy_intercept_errors on; try_files $uri $uri/ /index.html; //主要是这一行 在出现错误时,指向index.html } ~~~