moonsflyer 5 kuukautta sitten
vanhempi
commit
489cfcdee9
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      route/app.php

+ 4 - 1
route/app.php

@@ -25,7 +25,10 @@ Route::rule('admin/:any', function () {
 Route::rule('pc/:any', function () {
     return view(app()->getRootPath() . 'public/admin/index.html');
 })->pattern(['any' => '\w+']);
-
+//PC端根路径
+Route::rule('pc', function () {
+    return view(app()->getRootPath() . 'public/admin/index.html');
+});
 
 // 客服
 Route::rule('kefu/:any', function () {