An Electron + Vite Monorepo Demo
Uses:
- Vue.js
- Typescript
- Turborepo
- Vite (for Electron builds)
pnpm install
pnpm run dev
pnpm build
pnpm build:app
Electron Turborepo monorepo with Vue, Vite boilerplate
Home Page: https://buqiyuan.github.io/electron-vite-monorepo/
License: MIT License
请问如果我只有一个子菜单项的如何设置左侧列表只显示这个菜单项,不创建他的父级目录?
比如,系统看板菜单下只有一个子菜单项,所以我就不想显示这个系统看板了直接显示一个首页作为单独的菜单
文档
token和用户信息这块的vuex持久化存储相关代码怎么实现,怎么没找到相关的代码,
hi, buqiyuan,我看了generator-router的代码,其中有一个判断 if (item.type === 0) 同时 if (children?.length) 存在子项时,会把子项的第一个菜单的name作为父菜单的redirect参数,但使用过程中貌似不生效?
测试人员停留在上个系统版本,我重新发布一个新版本覆盖上一个版本的资源文件,这时测试人员点击以前没有访问过的页面,就会报错找不到相关的资源文件。原因是vite打包后js相关文件较细,进入新页面的时候需要加载服务器资源,此时上个版本的资源已经替换成新版本的资源,所以找不到资源文件。请问这种情况有什么好的办法解决吗?
[vite] Internal server error: unplugin-vue-define-options TypeError: Cannot read properties of undefined (reading 'scriptSetupAst')
本地运行超级慢,不知道啥原因/(ㄒoㄒ)/~~
大神不准备撸个文档:smile:
运行没有问题,但是i18n Ally 扩展 提示 没有找到文案
import from vue-i18n 的地方都是 无法找到模块“vue-i18n”的声明文件。
在命令行执行命令:
git clone https://github.com/buqiyuan/vite-vue3-admin
出现异常:
E:\go_code\multissh-master>git clone https://github.com/buqiyuan/vite-vue3-admin
Cloning into 'vite-vue3-admin'...
fatal: unable to access 'https://github.com/buqiyuan/vite-vue3-admin/': OpenSSL SSL_read: Connection was reset, errno 10054
开发的时候刷新页面后平均要等20秒才能显示,线上版本则没有这问题。
"dependencies": {
"@ant-design/icons-vue": "^6.0.1",
"@vueuse/core": "^7.6.2",
"ant-design-vue": "^3.1.1",
"axios": "^0.26.0",
"dayjs": "^1.10.7",
"file-saver": "^2.0.5",
"lodash-es": "^4.17.21",
"mitt": "^3.0.0",
"nprogress": "^1.0.0-1",
"pinia": "^2.0.11",
"qiniu-js": "^3.4.0",
"qs": "^6.10.3",
"socket.io-client": "^4.4.1",
"sortablejs": "^1.14.0",
"vue": "^3.2.31",
"vue-i18n": "^9.1.9",
"vue-router": "^4.0.12",
"xlsx": "^0.18.2"
},
"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@types/lodash-es": "^4.17.6",
"@types/node": "^17.0.18",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"@vitejs/plugin-legacy": "^1.7.1",
"@vitejs/plugin-vue": "^2.2.4",
"@vitejs/plugin-vue-jsx": "^1.3.8",
"commitizen": "^4.2.4",
"consola": "^2.15.3",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.5.0",
"eslint-define-config": "^1.2.5",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.5.0",
"gh-pages": "^3.2.3",
"husky": "^7.0.4",
"less": "^4.1.2",
"lint-staged": "^12.3.4",
"lodash-webpack-plugin": "^0.11.6",
"mockjs": "^1.1.0",
"postcss-html": "^1.3.0",
"postcss-less": "^6.0.0",
"prettier": "^2.5.1",
"rollup-plugin-visualizer": "^5.6.0",
"stylelint": "^14.5.3",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-recess-order": "^3.0.0",
"stylelint-config-recommended-vue": "^1.3.0",
"stylelint-config-standard": "^25.0.0",
"typescript": "^4.6.2",
"vite": "^2.9.1",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-mock": "^2.9.6",
"vite-plugin-style-import": "^2.0.0",
"vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-windicss": "^1.8.3",
"vue-eslint-parser": "^8.3.0",
"windicss": "^3.5.1"
},
系统:win11
大佬你好,强烈建议锁屏界面有个按钮或上下滑动,或ESC键,退出锁屏,或进入登录界面,不然一点击锁屏就不能退出了/(ㄒoㄒ)/~~
可以增加一些echarts 的图表的配置吗 还有表格中筛选功能 哈哈
SyntaxError: The requested module '/node_modules/.vite/xlsx.js?v=49175fa3' does not provide an export named 'default' '路由错误'
有些路由点击报这个错误,是因为vite的版本原因吗
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.