Browse Source

增加返回按钮

jwyu 2 years ago
parent
commit
f1128a7588
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/router/index.js

+ 4 - 2
src/router/index.js

@@ -444,7 +444,8 @@ const routes=[
         meta: {
         meta: {
           title: "搜索",
           title: "搜索",
           keepAlive:true,
           keepAlive:true,
-          isRoot:false
+          isRoot:false,
+          hasBack:true
         }
         }
       },
       },
       {
       {
@@ -454,7 +455,8 @@ const routes=[
         meta: {
         meta: {
           title: "图表详情",
           title: "图表详情",
           keepAlive:false,
           keepAlive:false,
-          isRoot:false
+          isRoot:false,
+          hasBack:true
         }
         }
       }
       }
     ]
     ]