jzfai / vue3-admin-plus Goto Github PK
View Code? Open in Web Editor NEW👏 An amazing admin framework of vue3
License: MIT License
👏 An amazing admin framework of vue3
License: MIT License
错误信息:
✘ [ERROR] Could not resolve "dom-zindex"
node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vxe-table/es/tools/utils.js:3:22:
3 │ import DomZIndex from 'dom-zindex';
╵ ~~~~~~~~~~~~
You can mark the path "dom-zindex" as external to exclude it from the bundle, which will remove
this error.
版本信息:
node:v18.15.0
npm:9.5.0
如题
Expected version: >= 16 <18
Got: v20.0.0
pycharm中开发,悬浮提示窗显示的el-switch组件的属性中 没有 inline-prompt
明明就一个模版项目 非得加入一堆乱七八糟的东西进去 还要模拟请求 登陆。
一个前端页面居然没有请求也要读条半天。 不知道作者在弄什么。
看了axiosReq.js,mockAxiosReq.js,vite.config.js,一头雾水,求大佬指点
[email protected] dev D:\dev\NKFABack
vite --mode serve-dev --host
fatal: Needed a single revision
failed to load config from D:\dev\NKFABack\vite.config.js
error when starting dev server:
Error: Command failed: git rev-parse --short HEAD
fatal: Needed a single revision
at checkExecSyncError (child_process.js:790:11)
at Object.execSync (child_process.js:863:15)
at Object.<anonymous> (D:\dev\NKFABack\vite.config.js:65:32)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.require.extensions.<computed> [as .js] (D:\dev\NKFABack\node_modules\.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-5496817b.js:82494:20)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at loadConfigFromBundledFile (D:\dev\NKFABack\node_modules\.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-5496817b.js:82502:17)
at loadConfigFromFile (D:\dev\NKFABack\node_modules\.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-5496817b.js:82421:32)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async resolveConfig (D:\dev\NKFABack\node_modules\.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-5496817b.js:81991:28)
at async createServer (D:\dev\NKFABack\node_modules\.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-5496817b.js:67664:20)
at async CAC.<anonymous> (D:\dev\NKFABack\node_modules\.pnpm\[email protected][email protected]\node_modules\vite\dist\node\cli.js:688:24)
ELIFECYCLE Command failed with exit code 1.
Process finished with exit code 1
请问这是什么引起的
以 首页 和 低代码平台 两个菜单为例
进入项目地址 此时tagview上有 一个名为 首页 的tag
第一步:点击低代码菜单 则多了一个名为 低代码平台的tag
第二步:通过点击tagview回到 首页
第三步:在首页写一个按钮 功能为 路由跳转 到 低代码平台页 push( { name:'xxx’, query: { name = "test" } } )
此时跳转到低代码页后 url上 会 带上 ?name=test https://github.jzfai.top/vue3-admin-plus/#/codeGenerator/index?name=test
第四步:通过点击tagview 跳回首页 再 点击 tagview跳到 低代码平台页 url上的 name参数 未保留 消失了
简而言之 通过push 带上 query参数跳转的页面 切换其他页面 再通过tagview进入 query参数会消失
当然这可以归为 功能实现 而不是bug
不过 vue-element-admin 是 有能够保留的 该参数的
Isn't always recommended to put the script setup tag before the template tag
我的理解是v3搭配使用@vue/compiler-sfc,就像v2中使用vue-template-compiler
请问我动态添加路由之后,多次切换的话,为什么会白屏呢
运行 pnmp run dev 报错
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of URL. Received undefined
组件加载时,有两个加载提示
运行后打开localhost:5005报错:AxiosError:Network Error
在项目运行后,按照tailwind官方的流程引入css,无法触发相关编译机制,无法进行编译,导致最终无法使用tailwind。
有群没
请问一下:
1,测试数据是在哪里隐藏的?
2, 如何实现向让匿名用户不用登录也可以访问指定的页面? 登录成功后会执行什么操作? 写cookie?
看vue2的版本,很明显看到有:
const data = response.data
Cookies.set('Token', response.data.token) //登录成功后将token存储在cookie之中
commit('SET_TOKEN', data.token)
但vue3的版本看不懂。 求指教。
谢谢
真香!
import path from 'path'
提示错误 Cannot use import statement outside a module
如题
Hi,
Can you please create this useful datatable? Please find the sample below:
https://raw.githubusercontent.com/rubanraj54/vue-bootstrap4-table/develop/src/assets/img/demo.gif
This is from bootstrap template. Hope you can create in this element plus template. Because it's very useful and can be used in many situation.
Thank you!
为什么你的服务器崩了 跳转页面都跳不过去了啊? - -
@jzfai RT
好多模板的系统管理模块(比如用户管理、部门管理、角色管理、菜单管理)都标配了,plus版还是差点意思,期待改进。
感觉是vue3 + element-plus完全复刻了vue-element-admin 很香,感谢作者!!
以下建议为个人想法,谢谢。
vuex个人感觉可以更新到pinia
添加 unplugin-auto-import 自动引入插件
element-plus和对应的icon库可以更新了 新版的用法有些跟旧版不一样了 可以看element-plus官网 辛苦!
使用yarn run dev时正常,打包后proxy.name引用变量提示变量未定义,我打印出来proxy的内容,发现并没有我预先定义的name
build: { assetsDir:'static/img', rollupOptions:{ output:{ chunkFileNames:'static/js/[name]-[hash].js', entryFileNames:'static/js/[name]-[hash].js', assetFileNames:'static/[ext]/[name]-[hash].[ext]', } } },
建议优化build,这样img、css、js就在不同的文件夹了
let dataBaseUrl = $ref(
'https://github.jzfai.top/micro-service-api/basis-func/dataBase/getAllDatabaseOrTable/micro-service-plus'
)
请求发生错误,可以修复下在线demo吗
{
"msg": "Could not open JDBC Connection for transaction; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure\n\nThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.",
"flag": false,
"code": 20001
}
请问build出来的静态档案,要如何架设? 使用以下的pm2 config架设的首页会是空白的
module.exports = {
name: 'app',
script: 'serve',
vizion: false,
env: {
PM2_SERVE_PATH: './dist',
PM2_SERVE_PORT: 5007,
version: version
}
}
路由添加了缓存,tagviwe右键刷新不起作用
期望:
不管有没有添加缓存,右击tagview都能刷新,正常重新走整个生命周期
src/utils/axios-req.ts 57~62行
` const { code, msg } = res.data
const successCode = '0,200,20000'
const noAuthCode = '401,403'
if (successCode.includes(code)) {
return res.data
} else {`
还有很多地方
为什么放在eslint里的extends选项里就能自动导入,还有大佬这样做得目的是不在每个组件里重复导入vue里的方法吗?能说下原理吗
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.