chore: update module
This commit is contained in:
parent
527aca2250
commit
f3592265cb
@ -15,9 +15,9 @@ class CommonServiceProvider extends CatchModuleServiceProvider
|
||||
*
|
||||
* @return string|array
|
||||
*/
|
||||
public function routePath(): string|array
|
||||
public function moduleName(): string|array
|
||||
{
|
||||
// TODO: Implement path() method.
|
||||
return CatchAdmin::getModuleRoutePath('common');
|
||||
return 'common';
|
||||
}
|
||||
}
|
||||
|
@ -22,9 +22,9 @@ class DevelopServiceProvider extends CatchModuleServiceProvider
|
||||
*
|
||||
* @return string|array
|
||||
*/
|
||||
public function routePath(): string|array
|
||||
public function moduleName(): string|array
|
||||
{
|
||||
// TODO: Implement path() method.
|
||||
return CatchAdmin::getModuleRoutePath('develop');
|
||||
return 'develop';
|
||||
}
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ class {Module}ServiceProvider extends CatchModuleServiceProvider
|
||||
/**
|
||||
* route path
|
||||
*
|
||||
* @return string|array
|
||||
* @return string
|
||||
*/
|
||||
public function routePath(): string|array
|
||||
public function moduleName(): string
|
||||
{
|
||||
// TODO: Implement path() method.
|
||||
return CatchAdmin::getModuleRoutePath('{module}');
|
||||
return '{module}';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,9 +23,9 @@ class PermissionsServiceProvider extends CatchModuleServiceProvider
|
||||
*
|
||||
* @return string|array
|
||||
*/
|
||||
public function routePath(): string|array
|
||||
public function moduleName(): string|array
|
||||
{
|
||||
// TODO: Implement path() method.
|
||||
return CatchAdmin::getModuleRoutePath('Permissions');
|
||||
return 'permissions';
|
||||
}
|
||||
}
|
||||
|
4
modules/Permissions/config/ok.php
Normal file
4
modules/Permissions/config/ok.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
return [
|
||||
'is_ok' => true
|
||||
];
|
4
modules/Permissions/config/oks.php
Normal file
4
modules/Permissions/config/oks.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
return [
|
||||
'is_ok' => true
|
||||
];
|
@ -19,10 +19,10 @@ class UserServiceProvider extends CatchModuleServiceProvider
|
||||
*
|
||||
* @return string|array
|
||||
*/
|
||||
public function routePath(): string|array
|
||||
public function moduleName(): string|array
|
||||
{
|
||||
// TODO: Implement path() method.
|
||||
return CatchAdmin::getModuleRoutePath('user');
|
||||
return 'user';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="./favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite App</title>
|
||||
<title>CatchAdmin 后台系统</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user