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

Commit 322e443

Browse files
committed
⚡ 修改vue路由#问题
1 parent 7d97c54 commit 322e443

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

‎src/App.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
/* eslint-disable */
2323
data() {
2424
return {
25-
transitionName,
25+
transitionName:'',
2626
}
2727
},
2828
name: 'app',

‎src/components/MessageList.vue‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="main" v-for="(todo, index) in comments">
44
<div style="margin-bottom: 15px">
55
<div style="display: inline-block">
6-
<img :src="header(index)" style="width:35px">
6+
<img :src="'http://p00vufmn6.bkt.clouddn.com/image/head/'+header(index)" style="width:35px">
77
</div>
88
<div class="info" style="display: inline-block">
99
<span style="font-size: 15px;color: #333;">{{todo.name}}</span><br/>
@@ -45,25 +45,25 @@ export default {
4545
header(index){
4646
switch(index%10){
4747
case 0:
48-
return 'http://p00vufmn6.bkt.clouddn.com/image/head/头像男孩.png';
48+
return '头像男孩.png';
4949
case 1:
50-
return 'http://p00vufmn6.bkt.clouddn.com/image/head/头像女孩.png';
50+
return '头像女孩.png';
5151
case 2:
52-
return 'http://p00vufmn6.bkt.clouddn.com/image/head/头像男孩(1).png';
52+
return '头像男孩(1).png';
5353
case 3:
54-
return 'http://p00vufmn6.bkt.clouddn.com/image/head/头像女孩(1).png';
54+
return '头像女孩(1).png';
5555
case 4:
56-
return 'http://p00vufmn6.bkt.clouddn.com/image/head/头像男孩(2).png';
56+
return '头像男孩(2).png';
5757
case 5:
58-
return 'http://p00vufmn6.bkt.clouddn.com/image/head/头像女孩(2).png';
58+
return '头像女孩(2).png';
5959
case 6:
60-
return 'http://p00vufmn6.bkt.clouddn.com/image/head/头像男孩(3).png';
60+
return '头像男孩(3).png';
6161
case 7:
62-
return 'http://p00vufmn6.bkt.clouddn.com/image/head/头像女孩(3).png';
62+
return '头像女孩(3).png';
6363
case 8:
64-
return 'http://p00vufmn6.bkt.clouddn.com/image/head/头像男孩(4).png';
64+
return '头像男孩(4).png';
6565
case 9:
66-
return 'http://p00vufmn6.bkt.clouddn.com/image/head/头像女孩(4).png';
66+
return '头像女孩(4).png';
6767
}
6868
6969
}

‎src/router/index.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const MessageList = (resolve) => {
1515
})
1616
}
1717
export default new Router({
18+
mode: 'history',
1819
routes: [
1920
{
2021
path: '/',

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /