yangzongzhuan / RuoYi-Vue3

:tada: (RuoYi)官方仓库 基于SpringBoot,Spring Security,JWT,Vue3 & Vite、Element Plus 的前后端分离权限管理系统
http://ruoyi.vip
MIT License
4.82k stars 1.96k forks source link

Vue3版本字典路由出现404错误 #134

Closed alpeak-long closed 11 months ago

alpeak-long commented 1 year ago

路由路径:/system/dict-data/index/1

myma911 commented 1 year ago

怎么解决呢

joker-wei-j commented 1 year ago

我也发现了这个问题,请问怎么解决

myma911 commented 1 year ago

已经收到您的来信,我会尽快回复。关注Mr_艾伦微博http://weibo.com/u/1658162891

alpeak-long commented 1 year ago

应该是你路由中的name属性重复,或者路由中有重复的路由,比如,a/b/index与a/index/d就可能会冲突,注意名字和路径就好

@.***

@.*** |

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年03月08日 11:27 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [yangzongzhuan/RuoYi-Vue3] Vue3版本字典路由出现404错误 (Issue #134) |

我也发现了这个问题,请问怎么解决

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

joker-wei-j commented 1 year ago

应该是你路由中的name属性重复,或者路由中有重复的路由,比如,a/b/index与a/index/d就可能会冲突,注意名字和路径就好 | | @. | | @. | ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年03月08日 11:27 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [yangzongzhuan/RuoYi-Vue3] Vue3版本字典路由出现404错误 (Issue #134) | 我也发现了这个问题,请问怎么解决 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

好的感谢,修改name属性后成功解决这个问题

alpeak-long commented 1 year ago

另外就是路由路径中尽量不要用出现过的路径中的单词,也会有可能出现路由失效,比如。a/b和b/c容易出现问题。另外路由不建议用index做路由的某个单词他和index.vue会冲突失效,比如data/index和data/index/index.vue(vue实际的路径)冲突

@.***

@.*** |

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年03月08日 14:27 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [yangzongzhuan/RuoYi-Vue3] Vue3版本字典路由出现404错误 (Issue #134) |

应该是你路由中的name属性重复,或者路由中有重复的路由,比如,a/b/index与a/index/d就可能会冲突,注意名字和路径就好 | | @. | | @. | … ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年03月08日 11:27 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [yangzongzhuan/RuoYi-Vue3] Vue3版本字典路由出现404错误 (Issue #134) | 我也发现了这个问题,请问怎么解决 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

好的感谢,修改name属性后成功解决这个问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

joker-wei-j commented 1 year ago

明白了,感谢 

魏云龙 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年3月8日(星期三) 下午2:37 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [yangzongzhuan/RuoYi-Vue3] Vue3版本字典路由出现404错误 (Issue #134)

另外就是路由路径中尽量不要用出现过的路径中的单词,也会有可能出现路由失效,比如。a/b和b/c容易出现问题。另外路由不建议用index做路由的某个单词他和index.vue会冲突失效,比如data/index和data/index/index.vue(vue实际的路径)冲突

@.***

@.*** |

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年03月08日 14:27 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [yangzongzhuan/RuoYi-Vue3] Vue3版本字典路由出现404错误 (Issue #134) |

应该是你路由中的name属性重复,或者路由中有重复的路由,比如,a/b/index与a/index/d就可能会冲突,注意名字和路径就好 | | @. | | @. | … ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年03月08日 11:27 | | 收件人 | @.> | | 抄送至 | @.@.> | | 主题 | Re: [yangzongzhuan/RuoYi-Vue3] Vue3版本字典路由出现404错误 (Issue #134) | 我也发现了这个问题,请问怎么解决 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

好的感谢,修改name属性后成功解决这个问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

alpeak-long commented 1 year ago

路由名称name重复,或者是路由路径有重复单词,例如/data/index和data/index/index.vue或a/b和b/c

@.***

@.*** |

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年02月22日 13:41 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [yangzongzhuan/RuoYi-Vue3] Vue3版本字典路由出现404错误 (Issue #134) |

怎么解决呢

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Emmpty commented 1 year ago

这个还没修复吗 都好久了 这个3.0版本是不维护了吗?

myma911 commented 1 year ago

已经收到您的来信,我会尽快回复。关注Mr_艾伦微博http://weibo.com/u/1658162891

alpeak-long commented 1 year ago

这个是路由名称有重复现象,取名字注意下就不会了,比如a/b和b/a/c就是重复的,在路由list里面就不会在添加。另外这个版本合并到另一个仓库里去了,也就是后台代码哪里

@.***

@.*** |

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年07月25日 17:24 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [yangzongzhuan/RuoYi-Vue3] Vue3版本字典路由出现404错误 (Issue #134) |

这个还没修复吗 都好久了 这个3.0版本是不维护了吗?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Emmpty commented 1 year ago

治标不治本啊 到底是哪里导致的 不可能说 /a/b/c /a/d/c 这样的路由 也判断成同一个吧 有一个同名都404,,新文档地址仓库地址是什么??请问这个问题修复了吗

alpeak-long commented 1 year ago

路由里面有一个name属性,这个name不能重复

@.***

@.*** |

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年07月25日 17:44 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [yangzongzhuan/RuoYi-Vue3] Vue3版本字典路由出现404错误 (Issue #134) |

治标不治本啊 到底是哪里导致的 不可能说 /a/b/c /a/d/c 这样的路由 也判断成同一个吧 有一个同名都404,,新文档地址仓库地址是什么??请问这个问题修复了吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

alpeak-long commented 1 year ago

另外新地址,其实所以官网扩展哪里可以找到:Ruoyi-Vue3-Plus你可以去看看,我从那个入口找到的

@.***

@.*** |

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年07月25日 17:44 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [yangzongzhuan/RuoYi-Vue3] Vue3版本字典路由出现404错误 (Issue #134) |

治标不治本啊 到底是哪里导致的 不可能说 /a/b/c /a/d/c 这样的路由 也判断成同一个吧 有一个同名都404,,新文档地址仓库地址是什么??请问这个问题修复了吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

yangzongzhuan commented 11 months ago

前后端分离版本问题请到这里提问 https://gitee.com/y_project/RuoYi-Vue/issues 需要提供出能复现问题详细步骤。

myma911 commented 11 months ago

已经收到您的来信,我会尽快回复。关注Mr_艾伦微博http://weibo.com/u/1658162891

SYLQW commented 4 months ago

按这个步骤可以解决: image image image

myma911 commented 4 months ago

已经收到您的来信,我会尽快回复。关注Mr_艾伦微博http://weibo.com/u/1658162891