Cannot Store Data Unexpected token '-'
请帮帮我,我想把 gjs 的数据存储到 mysql,但我无法从前端到后端传输任何数据 这是我的代码: 'const editor = grapesjs.init({ 容器:“#editor”, storageManager: { 类型:“远程”, 参数:{}, // 用于请求的自定义值 你的服务器端点 urlStore: 'http://example.com/store-webpage', urlLoad: 'http://example.com/load-webpage', contentTypeJson: true, setStepsBeforeSave: 1, }, blockManager: { 附录:“#blocks”...
Ju99ernaut
变量名不能包含 '-',因此以下语法无效: “''js const { gjs-assets, gjs-components, gjs-css, gjs-html, gjs-styles } = req.body; ```
Spectrevuln-sketch
请帮帮我,我想把模板存到 MySQL,我该怎么做?
Ju99ernaut
遗憾的是,这可能超出 grapesjs 范围,但有些需要注意的 另外,既然你在存储时看起来是在移除 gjs- 前缀,加载时也必须重新添加它。这里也有类似的方法,https://github.com/Ju99ernaut/gjs-api 但用于python和postgres。