yangzongzhuan / ruoyi-vue3 Goto Github PK
View Code? Open in Web Editor NEW:tada: (RuoYi)官方仓库 基于SpringBoot,Spring Security,JWT,Vue3 & Vite、Element Plus 的前后端分离权限管理系统
Home Page: http://ruoyi.vip
License: MIT License
:tada: (RuoYi)官方仓库 基于SpringBoot,Spring Security,JWT,Vue3 & Vite、Element Plus 的前后端分离权限管理系统
Home Page: http://ruoyi.vip
License: MIT License
404 Whitelabel Error Page
场景:
hash 模式 oss 部署(没法 try_file) 的情况下,初始页面跳转 /index 会尝试去找 /index 而导致404
解决方案建议:
考虑到 hash 场景还没办法设置 try_file ,在跳转 /index 的地方,变更为跳转 / 即可
包含(暂时发现的):
vite
src/layout/components/index.js:4:36: error: Could not resolve "./TagsView/index.vue"
4 │ export { default as TagsView } from './TagsView/index.vue'
╵ ~~~~~~~~~~~~~~~~~~~~~~
大佬,vue3.0版本时候升级到vite3.0
Pre-bundling dependencies:
vue
js-cookie
element-plus
element-plus/lib/locale/lang/zh-cn
vuex
(...and 9 more)
(this will be run only when your dependencies or config have changed)
error when starting dev server:
Error: listen EACCES: permission denied 0.0.0.0:80
at Server.setupListenHandle [as _listen2] (net.js:1303:21)
at listenInCluster (net.js:1368:12)
at Server.listen (net.js:1454:7)
at Server.httpServer.listen (D:\project\center-temp\rouyi-vue\RuoYi-Cloud-Vue3-master\node_modules\vite\dist\node\chunks\dep-e0fe87f8.js:66928:20)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
代码生成器生成前后端,列表内的图片无法显示(这导致了整个列表无法显示),详细错误见下
index.vue:36
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'split')
at ReactiveEffect.fn (index.vue:36:1)
at ReactiveEffect.run (reactivity.esm-bundler.js:167:25)
at get value [as value] (reactivity.esm-bundler.js:1101:39)
at unref (reactivity.esm-bundler.js:1009:29)
at Object.get (reactivity.esm-bundler.js:1012:37)
at Proxy._sfc_render (index.vue:61:1)
at renderComponentRoot (runtime-core.esm-bundler.js:893:44)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5030:57)
at ReactiveEffect.run (reactivity.esm-bundler.js:167:25)
at setupRenderEffect (runtime-core.esm-bundler.js:5156:9)
我尝试将image-preview组件更换为el-image组件,更换后图片是可以正常显示的
自动生成前端代码见下
<el-table-column label="照片" align="center" prop="photo" width="100">
<template #default="scope">
<image-preview :src="scope.row.photo" :width="50" :height="50" />
</template>
</el-table-column>
更换组件后代码见下
<el-table-column label="照片" align="center" prop="photo" width="100">
<template #default="scope">
<el-image :src="'/dev-api'+scope.row.photo" :width="50" :height="50" />
</template>
</el-table-column>
多选bu g
前端打包之后基本上所有项目都是404,值得注意的是我看了一下,暂时还没有网络请求,本地文件(css、js)首先就已经找不到了。求解决。
问题:系统管理>菜单管理 点击任意一项修改,关掉dialog再次点击修改,select中的选项就为空了
调试debugger行时,浏览器所停的行位置不对
大佬,为何这个vue3项目,我设置了本地proxy,解决跨域,不生效呢,就好像一直不走这一块一样
问题:
.env 配置文件在意外导致配置缺失时,(VITE_BUILD_COMPRESS 配置只在生产打包才需要,而且是必需的,本地 dev 不需要也不会报错)提示为代码报错,未有具体报错提示。
两个可行的建议:
(this will be run only when your dependencies or config have changed)
error when starting dev server:
Error: listen EACCES: permission denied 0.0.0.0:80
at Server.setupListenHandle [as _listen2] (net.js:1296:21)
at listenInCluster (net.js:1361:12)
at Server.listen (net.js:1447:7)
at Server.httpServer.listen (E:\MyTest\RuoYi-Vue3\node_modules\vite\dist\node\chunks\dep-e0fe87f8.js:66928:20)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: vite
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lenovo\AppData\Roaming\npm-cache_logs\2022-02-23T07_13_50_194Z-debug.log
没有富文本编辑器
系统管理-》菜单管理-》新增按钮
下载完依赖,yarn dev 跑起来访问地址是:http://localhost:8080/dev-api
请问:我在哪里修改请求访问的baseURL:http://vue.ruoyi.vip/prod-api
现在baseURL的访问地址是: (util的request文件)baseURL: import.meta.env.VITE_APP_BASE_API, 怎么修改呢
问题:
git 本身大小写不敏感,在本地调戏代码,大小写修改后能正常,但到了线上编译总是提示找不到 vue 文件
修复建议:
手册上这样写
import DictData from '@/components/DictData'
DictData.install()
说这个在main.js里面有
但是看下了没有 生成的模板有关联字典就报错
请在RuoYi-Vue-issues里提问,方便统一处理。
ruoyi-vue3.0的生成代码模板VM文件什么时候更新
代码生成器生成的前端代码还是vue2版本的吗
表单构建好像没有东西,是没有集成进来?还是说我拉的有问题。
rt
Error: connect ECONNREFUSED 127.0.0.1:7890
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16) (x2)
vue2版本的有这功能, vue3的怎么没有把这功能加上, 这功能还是很需要
是我自己的问题,瞎了没看到v3
请问大佬什么时候开发若依vue3版本的表单构建页面
系统工具-》代码生成-》数据列表的编辑图表按钮-》点击提交按钮报错
JSON parse error: Unrecognized field "required" (class com.ruoyi.generator.domain.GenTableColumn), not marked as ignorable; nested exception is com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "required" (class com.ruoyi.generator.domain.GenTableColumn), not marked as ignorable (24 known properties: "updateBy", "columnName", "queryType", "isInsert", "isPk", "params", "isList", "searchValue", "columnType", "columnId", "createBy", "isEdit", "updateTime", "javaField", "javaType", "isQuery", "isIncrement", "createTime", "dictType", "sort", "tableId", "columnComment", "isRequired", "htmlType"]) at [Source: (PushbackInputStream); line: 1, column: 985] (through reference chain: com.ruoyi.generator.domain.GenTable["columns"]->java.util.ArrayList[0]->com.ruoyi.generator.domain.GenTableColumn["required"])
如果axios发请求,不使用封装好的这个import request from '@/utils/request',应该怎么传参,才能后端权限验证通过。
如果直接拼headers: { Authorization: "Bearer " + getToken() } 不生效!,求救!
故障现像:
某个页面异常后
点击所有正常页面都报错,
只能全部刷新
Cannot read property 'parentNode' of null
runtime-core.esm-bundler.js:6620 [Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next
at
at
at <Index onVnodeUnmounted=fn ref=Ref< Proxy {__v_skip: true} > >
at
at
warn | @ | vue-router.esm-bundler.js:72 | |
---|---|---|---|
triggerError | @ | vue-router.esm-bundler.js:3293 | |
(匿名) | @ | vue-router.esm-bundler.js:3334 | |
Promise.catch(异步) | |||
handleScroll | @ | vue-router.esm-bundler.js:3334 | |
finalizeNavigation | @ | vue-router.esm-bundler.js:3188 | |
(匿名) | @ | vue-router.esm-bundler.js:3060 | |
Promise.then(异步) | |||
pushWithRedirect | @ | vue-router.esm-bundler.js:3031 | |
push | @ | vue-router.esm-bundler.js:2962 | |
navigate | @ | vue-router.esm-bundler.js:2089 | |
callWithErrorHandling | @ | runtime-core.esm-bundler.js:6737 | |
callWithAsyncErrorHandling | @ | runtime-core.esm-bundler.js:6746 | |
invoker | @ | runtime-dom.esm-bundler.js:357 |
vue-router.esm-bundler.js:3295 TypeError: Cannot read property 'parentNode' of null
at parentNode (runtime-dom.esm-bundler.js:35)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:4411)
at ReactiveEffect.run (reactivity.esm-bundler.js:160)
at callWithErrorHandling (runtime-core.esm-bundler.js:6737)
at flushJobs (runtime-core.esm-bundler.js:6976)
runtime-dom.esm-bundler.js:35 Uncaught (in promise) TypeError: Cannot read property 'parentNode' of null
at parentNode (runtime-dom.esm-bundler.js:35)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:4411)
at ReactiveEffect.run (reactivity.esm-bundler.js:160)
at callWithErrorHandling (runtime-core.esm-bundler.js:6737)
at flushJobs (runtime-core.esm-bundler.js:6976)
修改主题颜色,只有侧边栏被修改了,其他按钮等控件颜色都没改变
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.