From 0de998dc2584757af741f3d350f88771053477a1 Mon Sep 17 00:00:00 2001 From: xboard Date: Sat, 11 Jan 2025 07:06:53 +0800 Subject: [PATCH] fix: theme update --- .dockerignore | 1 + app/Services/ThemeService.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index c86c433..3b0ee11 100644 --- a/.dockerignore +++ b/.dockerignore @@ -23,3 +23,4 @@ docker-compose.yml storage/laravels.conf storage/laravels.pid storage/laravels-timer-process.pid +/frontend diff --git a/app/Services/ThemeService.php b/app/Services/ThemeService.php index c12593d..c5f1686 100644 --- a/app/Services/ThemeService.php +++ b/app/Services/ThemeService.php @@ -159,7 +159,7 @@ class ThemeService throw new Exception('主题已存在'); } - File::moveDirectory($sourcePath, $targetPath); + File::copyDirectory($sourcePath, $targetPath); $this->initConfig($config['name']); return true;