Giter Site home page Giter Site logo

iview-dynamicrouter's People

Contributors

zzayne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iview-dynamicrouter's Issues

左侧菜单导航问题

老大,根据您的权限验证,左侧的导航栏 是由 后台传递过来的吗?还是后台传递的数据 与我们写好的 进行匹配

import 动态导入需要安装插件吗?

export default (url) =>()=>import(@/views/${url}.vue)
这句需要装什么插件吗? 我在vue-cli 项目中使用 报错, 所以问下 ,麻烦解答一下, 谢谢

动态路由

当设置好动态路由之后就报错```
ERROR in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/tables/components/multiPageTable.vue
Module not found: Error: Can't resolve './editableTable.vue' in 'C:\Users\ding\Desktop\CustomerSanagementSystem\src\views\tables\components'
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/tables/components/multiPageTable.vue 7:21-51
@ ./src/views/tables/components/multiPageTable.vue
@ ./src/views lazy ^./.*.vue$
@ ./src/libs/lazyLoading.js
@ ./src/libs/util.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8081 webpack/hot/dev-server @/main
Child html-webpack-plugin for "..\index.html":`

不支持路由数据里的二级以上路由吗?

"path": "/businessRouter",
    "icon": "iconfont icon-yewu1",
    "name": "businessRouter",
    "title": "业务管理",
    "component": "Main",
    "children": [
      {
        "path": "pactManage",
        "name": "pactManage",
        "title": "合同管理",
        "component": "businessBox/pactManage/pactManage"
      }

这是正常的路由数据控制。
我在children里面再嵌一层children不行吗?
路由是配置成功了,可以三层地址打开页面,但是点击菜单他打开的却是去掉/businessRouter的。直接是#/pactRouter

"path": "/businessRouter",
    "icon": "iconfont icon-yewu1",
    "name": "businessRouter",
    "title": "业务管理",
    "component": "Main",
    "children": [
      {
        "path": "pactRouter",
        "name": "pactRouter",
        "title": "合同管理",
        "component": "businessBox/pactManage/pactRouter",
        "children": [
          {
            "path": "pactManage",
            "name": "pactManage",
            "title": "合同列表",
            "component": "businessBox/pactManage/pactManage"
          }
        ]
      }

业务页面增多 发现热更新超级慢

大概有40多个 .vue 文件 最后发现
// 生成路由节点
util.initRouterNode
方法中 menu.component = lazyLoading(menu.component); 这个位置导致的
求教有什么办法解决么?

render函数里面,怎么控制权限

你好,现在有个问题请教一下。
v-hasPermission在页面元素标签内是可以使用的,但是在render函数里怎么去控制按钮的权限呢,比如表格里的操作按钮

权限问题

如果某用户没有访问A页面的权限,但直接在地址栏输入菜单名称就可以访问了,这种非法访问怎么拦截啊?求老大指点... @zzayne

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.