修改类库
This commit is contained in:
parent
201cb455f5
commit
b94800033f
@ -52,7 +52,7 @@ class BackupCommand extends Command
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
*/
|
||||
public function generator($tables, $path)
|
||||
public function generator($tables, $path): void
|
||||
{
|
||||
foreach ($tables as $table) {
|
||||
$this->table = $table;
|
||||
@ -168,7 +168,9 @@ class BackupCommand extends Command
|
||||
if (extension_loaded('zip')) {
|
||||
$files = glob(CatchAdmin::backupDirectory() . '*.sql');
|
||||
$zip = new \ZipArchive();
|
||||
$zip->open(root_path('database/') . 'backup.zip', \ZipArchive::CREATE);
|
||||
$backupPath = runtime_path('database/');
|
||||
CatchAdmin::makeDirectory($backupPath);
|
||||
$zip->open($backupPath . 'backup.zip', \ZipArchive::CREATE);
|
||||
$zip->addEmptyDir('backup');
|
||||
foreach ($files as $file) {
|
||||
$zip->addFile($file, 'backup/'. basename($file));
|
||||
|
0
view/catch-admin/src/api/database.js
Normal file
0
view/catch-admin/src/api/database.js
Normal file
13
view/catch-admin/src/views/system/database/index.vue
Normal file
13
view/catch-admin/src/views/system/database/index.vue
Normal file
@ -0,0 +1,13 @@
|
||||
<template>
|
||||
$END$
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'index'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
13
view/catch-admin/src/views/system/log/login.vue
Normal file
13
view/catch-admin/src/views/system/log/login.vue
Normal file
@ -0,0 +1,13 @@
|
||||
<template>
|
||||
$END$
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'login'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
13
view/catch-admin/src/views/system/log/operate.vue
Normal file
13
view/catch-admin/src/views/system/log/operate.vue
Normal file
@ -0,0 +1,13 @@
|
||||
<template>
|
||||
$END$
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'operate'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
x
Reference in New Issue
Block a user