This commit is contained in:
2025-05-09 19:00:29 +08:00
parent 232343324a
commit 5b07ba0dad
4 changed files with 15 additions and 15 deletions

View File

@@ -35,7 +35,7 @@
return this;
},
loadFile() {
axios.get('/themes/' + themeName + '/files/' + fileName)
axios.get('/themes/' + themeName + '/file/?fileName=' + fileName)
.then(data => {
this.file = data;
editor.setValue(this.file.content);
@@ -47,7 +47,7 @@
return;
}
this.isSubmitting = true;
axios.put('/themes/' + themeName + '/files/' + fileName, { content: this.file.content })
axios.put('/themes/' + themeName + '/file/?fileName=' + fileName, { content: this.file.content })
.then(data => {
console.log('data:', data);
location.href = "/admin/theme/detail?themeName=" + themeName + "&fileName=" + fileName + "";