Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5b1cd4e

Browse files
adjust route
1 parent35fd899 commit5b1cd4e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎src/router.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ Vue.use(Router)
1010
exportdefaultnewRouter({
1111
mode:'history',
1212
routes:[
13+
{
14+
path:'/',
15+
redirect:'/home',
16+
},
1317
{
1418
path:'/home',
1519
name:'home',
@@ -45,9 +49,5 @@ export default new Router({
4549
},
4650
],
4751
},
48-
{
49-
path:'*',
50-
redirect:'/home',
51-
},
5252
],
5353
})

‎vue.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports={
2-
baseUrl:process.env.NODE_ENV==='production'
3-
?'/carvuejs-website/dist/'
4-
:'/',
2+
//baseUrl: process.env.NODE_ENV === 'production'
3+
// ? '/carvuejs-website/dist/'
4+
// : '/',
55
chainWebpack:config=>{
66
config.module
77
.rule('md')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp