保存功能修正

This commit is contained in:
2026-05-18 17:23:00 +08:00
parent f41e39846d
commit f6af8c9a98
2 changed files with 5 additions and 6 deletions

View File

@@ -465,11 +465,11 @@
}
data.slug = SLUG;
// 扁平化處理新檔案檔名
if (data.file) {
const parts = data.file.split("/");
data.file = parts[parts.length - 1];
}
// 保留完整相對路徑,不再扁平化處理檔名,以支援子資料夾
// if (data.file) {
// const parts = data.file.split("/");
// data.file = parts[parts.length - 1];
// }
// 如果不是新增頁面(即一般的儲存頁面),且未帶有 HTML 內容,則動態獲取目前 HTML
const isNewPage = !!data.startTemplateUrl;

View File

@@ -2249,7 +2249,6 @@ Unzip the latest ckeditor release zip from https://github.com/ckeditor/ckeditor4
<script src="/static/Vvvebjs/libs/builder/plugin-jszip.js"></script>
<script src="/static/Vvvebjs/libs/builder/plugin-ai-assistant.js"></script>
<!-- autocomplete plugin used by autocomplete input-->
<script src="/static/Vvvebjs/libs/autocomplete/autocomplete.js"></script>
<script>