Code Monkey home page Code Monkey logo

Comments (10)

coderdavi avatar coderdavi commented on August 20, 2024 2

终于解决需要设置菜单的首页地址为 /dashboard 并配置原来的首页路由为/dashboard

您好,是怎么解决的?

1.修改routes.php中首页路径$router->get('/index', 'HomeController@index');
2.修改菜单栏中index对应得理由为/index

from dcat-iframe-tab.

michelleyaoyao avatar michelleyaoyao commented on August 20, 2024

是的。我也安装了。 首页有问题。 不知道怎么解决。谢谢

from dcat-iframe-tab.

mosiboom avatar mosiboom commented on August 20, 2024

首页有问题是因为iframe-tab占用了你默认的根路由,也就是“/”,你应该把主页的路由更改为“/dashboard”或者其他

from dcat-iframe-tab.

dmskys avatar dmskys commented on August 20, 2024

首页有问题是因为iframe-tab占用了你默认的根路由,也就是“/”,你应该把主页的路由更改为“/dashboard”或者其他

我把我的主页路由改成dashboard后,首页也跟他们一样,麻烦辛苦看看

from dcat-iframe-tab.

dmskys avatar dmskys commented on August 20, 2024

首页有问题是因为iframe-tab占用了你默认的根路由,也就是“/”,你应该把主页的路由更改为“/dashboard”或者其他

而且还发现一个问题,就是在后台使用独立域名部署的时候、不使用/admin 目录访问时,无法找到你的iframe主页路由

from dcat-iframe-tab.

mosiboom avatar mosiboom commented on August 20, 2024

我把我的主页路由改成dashboard后,首页也跟他们一样,麻烦辛苦看看

你能贴一下你的路由代码和截图吗。

from dcat-iframe-tab.

mosiboom avatar mosiboom commented on August 20, 2024

而且还发现一个问题,就是在后台使用独立域名部署的时候、不使用/admin 目录访问时,无法找到你的iframe主页路由

我不是很明白您说的这个问题。我在后面会更新一个能够自己配置路由的版本,可以让使用者自定义配置路由

from dcat-iframe-tab.

dmskys avatar dmskys commented on August 20, 2024

终于解决需要设置菜单的首页地址为 /dashboard 并配置原来的首页路由为/dashboard

from dcat-iframe-tab.

pengwei1986 avatar pengwei1986 commented on August 20, 2024

终于解决需要设置菜单的首页地址为 /dashboard 并配置原来的首页路由为/dashboard

您好,是怎么解决的?

from dcat-iframe-tab.

aogg avatar aogg commented on August 20, 2024
Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/index', 'HomeController@index');

});

UPDATE laravel.admin_menu SET uri = '/index' WHERE id = 1

from dcat-iframe-tab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.