Dhtmlx 甘特图在 XAMPP 但不是 VPS 服务器上工作

Dhtmlx Gantt worked at XAMPP but not VPS server

我在 Laravel 中使用 dhtmlx 甘特图。

我使用这个 dhtmlx 甘特图脚本:

https://github.com/Ojsholly/gantt_chart

它在 XAMPP 上完美运行。但是我把我的 VPS 服务器放好然后我得到了这个错误:

Failed to load the data from 
https://xxxxxxxxxxxx/api/data?dhxr160868036091=1
server returns 404 

我认为原因是 Node.js 没有安装。我安装了它,但我仍然有同样的错误。

我的节点。 js版本是v14.15.3

我的 Blade 文件的 js 部分是这样的

 <script src="https://cdn.dhtmlx.com/gantt/edge/dhtmlxgantt.js"></script>    
 <link href="https://cdn.dhtmlx.com/gantt/edge/dhtmlxgantt.css" rel="stylesheet">

可能是什么问题?

Node.js 应该与该问题无关。您似乎需要更改用于加载任务的URL。