pure-admin / electron-pure-admin Goto Github PK
View Code? Open in Web Editor NEWpure-admin官方electron版本
License: MIT License
pure-admin官方electron版本
License: MIT License
如题
electron什么时候可以同步vue-pure-admin的代码
你好,项目启动并安装依赖之后,yarn build和yarn browser:build命令执行结果一致,并未生成可执行的exe文件,麻烦看一下,谢谢了。
我使用且仅使用动态路由,当我位于首页时,前往其它动态路由页面会出现页面不加载的情况,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]
});
});
};
当我进入首页后再前往另外三个页面就会出现什么也加载不出来的情况。而当我强制刷新后会才会出现页面:
这是我的文件树,没有做修改:
打开之后 登录就会提示错误
Dynamic require of "path" is not supported
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.