fix:删除 /admin/dist/config.js 修改

This commit is contained in:
atshike
2025-01-07 09:57:20 +08:00
parent fe93f6abb5
commit 77c63c882d
@@ -129,16 +129,6 @@ class IndexController extends Controller
$this->updateEnv('DB_USERNAME', $params['user']);
$this->updateEnv('DB_PASSWORD', $params['password']);
$base_path = base_path();
$new_path = str_replace('/serve', '/admin/dist/config.js', $base_path);
$content = File::get($new_path);
if (!str_contains($content, $domain)) {
File::put($new_path, "window.config = {
// 你的后端域名
url: '{$domain}/api'
}");
}
} catch (\Exception $e) {
return redirect('install?step='.$step - 1)
->withErrors($e->getMessage())