ChenWuJie 4 年之前
父節點
當前提交
0e680debff
共有 1 個文件被更改,包括 2 次插入9 次删除
  1. 2 9
      app/Http/Controllers/Admin/AdminUserController.php

+ 2 - 9
app/Http/Controllers/Admin/AdminUserController.php

@@ -32,19 +32,12 @@ class AdminUserController extends BaseController
         $this->adminRole = new AdminRoleModel();
         $this->adminRole = new AdminRoleModel();
     }
     }
 
 
-    public function indexs()
+    public function index()
     {
     {
         $admin_role_options = $this->adminRole->getOptions();
         $admin_role_options = $this->adminRole->getOptions();
         list($model, $model_name, $pre_uri) = array($this->model, $this->model_name, $this->pre_uri);
         list($model, $model_name, $pre_uri) = array($this->model, $this->model_name, $this->pre_uri);
-        return view($this->view_path.'index', compact('model', 'model_name','pre_uri', 'admin_role_options'));
+        return view($this->redirect_index, compact('model', 'model_name','pre_uri', 'admin_role_options'));
     }
     }
-    public function Index()
-    {
-        $admin_role_options = $this->adminRole->getOptions();
-        list($model, $model_name, $pre_uri) = array($this->model, $this->model_name, $this->pre_uri);
-        return view($this->view_path.'index', compact('model', 'model_name','pre_uri', 'admin_role_options'));
-    }
-
     public function get(Request $request)
     public function get(Request $request)
     {
     {
         $items = $this->model->where('id', '>', 0);
         $items = $this->model->where('id', '>', 0);