更新服务

This commit is contained in:
24kycj
2024-12-06 20:28:24 +08:00
parent ef7eab3cf9
commit dddb5dd918
52 changed files with 172 additions and 14 deletions
+2 -1
View File
@@ -720,7 +720,8 @@ export default {
},
// 获取模板文件列表
getTemplates() {
fs.readdir('User Templates', (err, files) => {
const filePath = path.join(process.cwd(), 'User Templates');
fs.readdir(filePath, (err, files) => {
if (err) {
console.log(err)
} else {