-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from webman-tech/5-支持二级目录访问
5 支持二级目录访问
- Loading branch information
Showing
6 changed files
with
73 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,13 @@ | |
'js' => [ | ||
$amisAssetBaseUrl . 'sdk.js', | ||
'https://unpkg.com/[email protected]/umd/history.js', // 使用 app 必须 | ||
// 可以添加复杂的 script 脚本 | ||
/*[ | ||
'type' => 'script', | ||
'content' => <<<JS | ||
window.xxx = xxx; | ||
JS, | ||
]*/ | ||
], | ||
/** | ||
* 切换主题 | ||
|
@@ -59,7 +66,7 @@ | |
'amisJSON' => [ | ||
'brandName' => config('app.name', 'App Admin'), | ||
'logo' => '/favicon.ico', | ||
'api' => '/admin/pages', // 修改成获取菜单的路由 | ||
'api' => route('admin.pages'), // 修改成获取菜单的路由 | ||
], | ||
'title' => config('app.name'), | ||
], | ||
|
@@ -79,8 +86,8 @@ | |
'page_login' => function() { | ||
return [ | ||
//'background' => '#eee', // 可以使用图片, 'url(http://xxxx)' | ||
'login_api' => '/admin/auth/login', | ||
'success_redirect' => '/admin', | ||
'login_api' => route('admin.login'), | ||
'success_redirect' => route('admin'), | ||
]; | ||
}, | ||
/** | ||
|
@@ -101,4 +108,8 @@ | |
*/ | ||
'validator' => fn() => new \WebmanTech\AmisAdmin\Validator\NullValidator(), | ||
//'validator' => fn() => new \WebmanTech\AmisAdmin\Validator\LaravelValidator(\support\Container::get(\Illuminate\Contracts\Validation\Factory::class)), | ||
/** | ||
* 用于获取当前请求的路径,当部署到二级目录时有用 | ||
*/ | ||
'request_path_getter' => null, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters