GithubHelp home page GithubHelp logo

pure-admin / electron-pure-admin Goto Github PK

View Code? Open in Web Editor NEW
77.0 77.0 38.0 826 KB

pure-admin官方electron版本

License: MIT License

Shell 0.17% JavaScript 2.57% TypeScript 51.53% HTML 0.74% Vue 34.82% CSS 0.69% SCSS 9.47%
electron electron-pure-admin pure-admin-thin vue-pure-admin

electron-pure-admin's People

Contributors

xiaoxian521 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

Watchers

 avatar  avatar  avatar

electron-pure-admin's Issues

运行出错了

今天在两台电脑上都相继出现这个错误,都是刚从GitHub下载的代码。
执行顺序是:
1.pnpm i
2.pnpm dev

image

从首页跳转到动态路由加载失败

我使用且仅使用动态路由,当我位于首页时,前往其它动态路由页面会出现页面不加载的情况,onMounted没有被触发。
这是我的动态路由页面,我直接修改了src/api/routes.ts文件:

const resourceRouter = {
  path: "/manage",
  name: "Manage",
  meta: {
    title: "综合管理",
    icon: "fileSettingsFill",
    rank: 2
  },
  children: [
    {
      path: "/manage/resource",
      name: "Resource",
      meta: {
        title: "资源管理",
        roles: ["admin"]
      }
    }
  ]
};
const templateRouter = {
  path: "/manage",
  name: "Manage",
  meta: {
    title: "综合管理",
    icon: "fileSettingsFill",
    rank: 1
  },
  children: [
    {
      path: "/manage/design",
      name: "Design",
      meta: {
        title: "模板管理",
        roles: ["admin"],
        auths: ["btn_add", "btn_edit", "btn_delete"]
      }
    }
  ]
};
const Layout = () => import("@/layout/index.vue");

const gatherRouter = {
  path: "/gather",
  name: "Gather",
  component: Layout,
  redirect: "/gather",
  meta: {
    icon: "uploadCloudFill",
    title: "采集工具",
    rank: 3
  },
  children: [
    {
      path: "/gather/attribute",
      name: "Attribute",
      component: () => import("@/views/gather/attribute.vue"),
      meta: {
        title: "资源采集",
        roles: ["admin", "common"]
      }
    }
  ]
};

export const getAsyncRoutes = () => {
  // return http.request<Result>("get", "/getAsyncRoutes");
  return new Promise(function (resolve) {
    resolve({
      success: true,
      data: [resourceRouter, templateRouter, gatherRouter]
    });
  });
};

当我进入首页后再前往另外三个页面就会出现什么也加载不出来的情况。而当我强制刷新后会才会出现页面:
image
这是我的文件树,没有做修改:
image

daobao

image
打包报错 没有改任何代码

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.