菜单新增是否缓存keep-alive
This commit is contained in:
		| @@ -17,7 +17,7 @@ import Layout from '@/layout' | ||||
|  * redirect: noRedirect           // 当设置 noRedirect 的时候该路由在面包屑导航中不可被点击 | ||||
|  * name:'router-name'             // 设定路由的名字,一定要填写不然使用<keep-alive>时会出现各种问题 | ||||
|  * meta : { | ||||
|     roles: ['admin','editor']    // 设置该路由进入的权限,支持多个权限叠加 | ||||
|     noCache: true                // 如果设置为true,则不会被 <keep-alive> 缓存(默认 false) | ||||
|     title: 'title'               // 设置该路由在侧边栏和面包屑中展示的名字 | ||||
|     icon: 'svg-name'             // 设置该路由的图标,对应路径src/assets/icons/svg | ||||
|     breadcrumb: false            // 如果设置为false,则不会在breadcrumb面包屑中显示 | ||||
|   | ||||
| @@ -187,6 +187,14 @@ | ||||
|               </el-radio-group> | ||||
|             </el-form-item> | ||||
|           </el-col> | ||||
|           <el-col :span="12"> | ||||
|             <el-form-item v-if="form.menuType == 'C'" label="是否缓存"> | ||||
|               <el-radio-group v-model="form.isCache"> | ||||
|                 <el-radio label="0">缓存</el-radio> | ||||
|                 <el-radio label="1">不缓存</el-radio> | ||||
|               </el-radio-group> | ||||
|             </el-form-item> | ||||
|           </el-col> | ||||
|         </el-row> | ||||
|       </el-form> | ||||
|       <div slot="footer" class="dialog-footer"> | ||||
| @@ -316,6 +324,7 @@ export default { | ||||
|         menuType: "M", | ||||
|         orderNum: undefined, | ||||
|         isFrame: "1", | ||||
|         isCache: "0", | ||||
|         visible: "0", | ||||
|         status: "0" | ||||
|       }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user