avatar
Articles
18
Tags
25
Categories
16
Home
List
  • Archives
  • Categories
  • Tags
Essay
Gallery
Link
About
uuuuuli解决 Vue 默认路由有斜杠后缀的问题?
搜索
Home
List
  • Archives
  • Categories
  • Tags
Essay
Gallery
Link
About

解决 Vue 默认路由有斜杠后缀的问题?

发表于2022-03-14|更新于2025-01-06|DevelopmentVue
|总字数:85|阅读时长:1分钟|浏览量:

测试版本:
vue: 2.6.12
vue-router: 3.4.7

1
2
3
4
5
6
7
8
9
10
11
12
13
const routes = [
{
path: '/home'
component: Layout,
children: [
{
path: '/home',
name: 'homeindex'
component: () => import('@/views/home/index.vue')
}
]
}
]

参考

  • https://stackoverflow.com/questions/58130594/vuerouter-default-child-route-without-trailing-slash#:~:text=VueRouter%20always%20adds%20a%20trailing%20slash%20before%20the,%27%3Aaid%27%2C%20component%3A%20HomeArticle%2C%20name%3A%20%27home.article%27%20%7D%20%5D%20%5D
文章作者: uli
文章链接: https://uuuuuli.top/2022/03/14/fix-vue-default-route-slash-suffix-issue.html
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 uuuuuli!
VueRouter
Sponsor
  • wechat
    wechat
  • alipay
    alipay
上一篇
Swift 如何自定义运算符?
Swift 中许多有的运算符,可以方便做一些运算操作。 例如: 溢出运算符 &+= &-= … 范围运算符 ..< ... 空合运算符 ?? 等等 那么,这些运算符的如何进行定义、优先级大小和结合性如何设置等等,让我们一起来了解一下吧! 如何定义运算符?12345678/// 前缀prefix operator ++/// 中缀infix operator **/// 后缀postfix operator -- 运算符的优先级优先级组1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950//===----------------------------------------------------------------------===//// Standard precedence...
下一篇
如何将文本转成语音
say 命令可以将文件转换成语音。命令示例 say -o hi.wav --data-format=alaw 北京欢迎您。下面例子是将 text.txt 文件中的文字,逐行转换为语音,保存到 voice 目录中。 12345678910111213#!/bin/bashtext=text.txtvoice_folder=voice[ ! -f $text ] && { echo "file $text does not exist"; exit 1; }[ ! -d $voice_folder ] && { echo "folder $voice_folder does not exist"; exit 1; }while read ido say -o ${voice_folder}/${i}.wav --data-format=alaw $idone < $text

Comments
GitalkDisqus
avatar
uli
Learning, Life, Growth, Feelings...
Articles
18
Tags
25
Categories
16
Follow Me
Announcement
Welcome to my blog!
目录
  1. 参考
Recent Posts
JavaScript中0.1 + 0.2的问题
JavaScript中0.1 + 0.2的问题2025-01-15
iOS 中如何保存图片到相册
iOS 中如何保存图片到相册2025-01-15
逻辑或运算符(||)与空值合并运算符(??)的对比2025-01-07
在 Flutter 中发送 SMS 的方法2025-01-07
JS首字母大写2022-03-17
©2020 - 2025 By uli
Framework Hexo|Theme Butterfly
Hi, welcome to my blog!
Search
Loading Database