pure-admin / vue-pure-admin Goto Github PK
View Code? Open in Web Editor NEW全面ESM+Vue3+Vite+Element-Plus+TypeScript编写的一款后台管理系统(兼容移动端)
Home Page: https://pure-admin.github.io/vue-pure-admin
License: MIT License
全面ESM+Vue3+Vite+Element-Plus+TypeScript编写的一款后台管理系统(兼容移动端)
Home Page: https://pure-admin.github.io/vue-pure-admin
License: MIT License
根据不同的用户身份来动态添加展示对应的路由信息
你好,请教一下,最新版使用了keep-alive的页面生命周期会加载多次,导致页面重复请求,这种怎么解决呢
form 表单使用的时候都是不能用的
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
当前项目为什么要用 /@
指向 src
, 是在开发中遇到有些问题,才这样的吗。因为 vue2.0 默认是 @
指向 src
目录。
保留页面编辑内容,如在“编辑”页面编辑了一些内容,切换到其他页面,再切换回来,发现原来编辑的内容不见了,希望能够保留。
path.js:25 Uncaught ReferenceError: process is not defined
at node_modules/path/path.js (path.js:25)
at __require (chunk-A5ICIBVI.js?v=25964595:12)
at dep:path:1
新建的项目,按着搬代码,SidebarItem.vue
提示这个报错,感觉path
库和@types/node
里的path冲突,去掉path
又报错
vue-router.esm-bundler.js:3248 TypeError: path.resolve is not a function
at Proxy.resolvePath (SidebarItem.vue:110)
at Proxy._sfc_render (SidebarItem.vue:10)
at renderComponentRoot (runtime-core.esm-bundler.js:1168)
at componentEffect (runtime-core.esm-bundler.js:5214)
at reactiveEffect (reactivity.esm-bundler.js:42)
at effect (reactivity.esm-bundler.js:17)
at setupRenderEffect (runtime-core.esm-bundler.js:5167)
at mountComponent (runtime-core.esm-bundler.js:5126)
at processComponent (runtime-core.esm-bundler.js:5084)
at patch (runtime-core.esm-bundler.js:4690)
只去掉@types/node
也报错
Uncaught Error: Module "path" has been externalized for browser compatibility and cannot be accessed in client code.
at Object.get (__vite-browser-external:path:3)
at Proxy.resolvePath (SidebarItem.vue:110)
at Proxy._sfc_render (SidebarItem.vue:10)
at renderComponentRoot (runtime-core.esm-bundler.js:1168)
at componentEffect (runtime-core.esm-bundler.js:5214)
at reactiveEffect (reactivity.esm-bundler.js:42)
at effect (reactivity.esm-bundler.js:17)
at setupRenderEffect (runtime-core.esm-bundler.js:5167)
at mountComponent (runtime-core.esm-bundler.js:5126)
at processComponent (runtime-core.esm-bundler.js:5084)
不知道是哪里的问题,求教
尝试利用docker构建开发环境时,总是提示包无法引入
scanner-web |
scanner-web | > [email protected] serve /project
scanner-web | > pnpm dev
scanner-web |
scanner-web |
scanner-web | > [email protected] dev /project
scanner-web | > vite
scanner-web |
scanner-web | failed to load config from /project/vite.config.ts
scanner-web | error when starting dev server:
scanner-web | Error: Cannot find module '@vitejs/plugin-vue-jsx'
scanner-web | Require stack:
scanner-web | - /project/vite.config.ts
scanner-web | - /project/node_modules/vite/dist/node/chunks/dep-efe32886.js
scanner-web | - /project/node_modules/vite/dist/node/cli.js
scanner-web | - /project/node_modules/vite/bin/vite.js
scanner-web | at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
scanner-web | at Function.Module._load (node:internal/modules/cjs/loader:778:27)
scanner-web | at Module.require (node:internal/modules/cjs/loader:1005:19)
scanner-web | at require (node:internal/modules/cjs/helpers:102:18)
scanner-web | at Object.<anonymous> (/project/vite.config.ts:32:40)
scanner-web | at Module._compile (node:internal/modules/cjs/loader:1101:14)
scanner-web | at Object.require.extensions.<computed> [as .ts] (/project/node_modules/vite/dist/node/chunks/dep-efe32886.js:46235:20)
scanner-web | at Module.load (node:internal/modules/cjs/loader:981:32)
scanner-web | at Function.Module._load (node:internal/modules/cjs/loader:822:12)
scanner-web | at Module.require (node:internal/modules/cjs/loader:1005:19)
scanner-web | ELIFECYCLE Command failed with exit code 1.
scanner-web | ELIFECYCLE Command failed with exit code 1.
docker 的配置如下
FROM node:16.11.0-slim
RUN mkdir /project
WORKDIR /project
COPY . .
RUN npm install -g pnpm
RUN pnpm add -g pnpm
RUN pnpm i
RUN pnpm add -D @vitejs/plugin-vue-jsx
CMD [ "pnpm", "serve"]
我把token放在store.getters.token中,配置Authorization: store.getters.token,store中的token最开始放的是登陆前的基础token,登陆后把获取到新的token放进去,但取出来的还是以前的老的token,没有取到新的token,请问该如何配置呢?
关于最近路由动态国际化的更新。
我觉得每个地方使用transformI18n(item.meta.title, item.meta.i18n)有点繁杂。
我觉得这个这部分在路由获取载入的时候处理比较好。只需要在initRouter方法里
统一遍历路由源数据。使用transformI18n, 让meta.title根据item.meta.i18n改成正确的meta.title这样使用到的地方,只用{{item.meta.title}}就好了。
以后维护起来也方便,用起来也美观。
因为改动比较大。调整的页面文件比较多。所以我没有进行修改。
Is your feature request related to a problem? Please describe.
horizontal / vertical navigation
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
*****架包 安装时 报 GET https://registry.npm.taobao.org/@intlify/core-base/-/core-base-9.2.0-beta.17.tgz: Not Found - 404
SeamlessScroll.vue 组件在多处使用时,只有一个能自动滚动!
安装的时候出现依赖包下载不了,报错信息:
GET https://registry.npmjs.org/~/@intlify/core-base/-/core-base-9.2.0-beta.17.tgz: Not Found - 404
该版本重构了storage,请先清理缓存再打开页面!!!
Describe the bug
点击面包屑重定向菜单的第一个字菜单(前提是标签页没有那个菜单的路由以后会出现页面出现),标签页没出现
现在支持国际化挺好的,但是不够完美。
因为采用动态路由,这时路由中对应的国际化又需要本地预配置,这样就违背了动态的初衷。
看看有没有办法路由、国际化同时动态。
那样就完美了。
能否搭建一个试用地址 让我们看看效果
HeyUI组件库中有一个很好用的功能——全局字典( https://www.heyui.top/component/config ),这个功能可以让你在任何需要使用字典的位置用{{value | dictMapping(key)}}取值,非常方便,建议借鉴过来。
建议抽离配置参数为单独的配置模块
控制台提示 Uncaught SyntaxError: Unexpected token .
The font-family in setting.json
will break vscode integrated terminal, making me confused whats wroing with my computer.
#SidebarItem 主键 中 使用到了 path 包
const resolvePath = (routePath: string) => {
return path.resolve(props.basePath, routePath);
};
出现这样的错误
Uncaught (in promise) Error: Module "path" has been externalized for browser compatibility and cannot be accessed in client code.
请问这个是你是怎么解决的?
请问按需引入UI组件后,这个样式会出现问题吗,我之前按需引入后,个别组件样式加载不出来,全局引入就可以
在Tab右键菜单中增加“”关闭右侧标签页”和“关闭左侧标签页”,这样更加方便。
开源不易,望珍惜!!!
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.