Parcourir la source

去除了首页默认去查询页面

JXDS18FUJT il y a 2 ans
Parent
commit
8cb344fab9
2 fichiers modifiés avec 12 ajouts et 11 suppressions
  1. 10 9
      src/router/index.js
  2. 2 2
      src/views/price/gallery/index.vue

+ 10 - 9
src/router/index.js

@@ -55,15 +55,16 @@ export const constantRoutes = [
   {
     path: '',
     component: Layout,
-    redirect: 'index',
-    children: [
-      {
-        path: 'index',
-        component: (resolve) => require(['@/views/index'], resolve),
-        name: '首页',
-        meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
-      }
-    ]
+    redirect: 'query',
+    hidden: true,
+    // children: [
+    //   {
+    //     path: 'index',
+    //     component: (resolve) => require(['@/views/index'], resolve),
+    //     name: '首页',
+    //     meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
+    //   }
+    // ]
   },
   {
     path: '/user',

+ 2 - 2
src/views/price/gallery/index.vue

@@ -26,9 +26,9 @@
             </el-table-column>
             <!-- <el-table-column prop="fileId" label="文件id"> -->
             <!-- </el-table-column> -->
-            <el-table-column align="left" prop="fileUrl" label="文件缩略图">
+            <el-table-column align="center" prop="fileUrl" label="文件缩略图">
                 <template slot-scope="scope">
-                    <div style="width:250px">
+                    <div style="width:250px;margin: auto;">
 
                         <el-image v-if="getFileType(scope.row) == 'image'" :src="scope.row.fileUrl"
                             :preview-src-list="[scope.row.fileUrl]"></el-image>