常见问题
小于 1 分钟
常见问题
提示
请先查阅下面的常见问题。
- 系统登录时跳转白页的问题
- 检查一下 store/permission.js 里 GenerateRoutes 方法里有没有抛出异常。
- chrome 中需要 chrome://flags/#site-isolation-trial-opt-out 配置三项 为 disabled 禁止 samesite 配置,chrom77 以后版本有这个问题。
- 最终解决方案,需要后端在向前端写 cookie 时,设置samesite为none
三级路由菜单问题
将统一权限里的一级菜单的 url 为空,二级菜单设置为 Blank,三级菜单设置真正的路由。keepAlive 失效问题
将统一权限里的标识和 vue 组件的 name 值保持一致。档案项目里出现 Module not found: Error:[CaseSensitivePathsPlugin]或者 ./common/http.js in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader.
是模块导入的时候没有和组件文件名大小写完全一致造成的。
- 解决 element-ui 动态表单表头固定构建问题
监听 table 数据每次数据得到或改变时重新渲染 tableData(val) { this.doLayout(); } doLayout(){ let that = this this.$nextTick(() => { that.$refs.table.doLayout() }) } 在 updated 生命周期里使用 doLayout