Dhtmlx Gantt 在 XAMPP 工作,但不在 VPS 服务器上工作

问题描述

我在 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。