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

Appearance settings

Commit 8511ce9

Browse filesBrowse files
committed
add router & preview header image
1 parent 52cf9cc commit 8511ce9
Copy full SHA for 8511ce9

File tree

Expand file treeCollapse file tree

4 files changed

+16
-1
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+16
-1
lines changed
163 KB
Loading

‎src/components/productsDetailInfo/productsHeader.vue

Copy file name to clipboardExpand all lines: src/components/productsDetailInfo/productsHeader.vue
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export default {
3636
'/products/swifter-tips': require('../../assets/swifter-tips-header.png'),
3737
'/products/functional-swift': require('../../assets/functional-swift-header.png'),
3838
'/products/core-data': require('../../assets/core-data-header.png'),
39-
'/products/advanced-swift': require('../../assets/advanced-swift-header.png')
39+
'/products/advanced-swift': require('../../assets/advanced-swift-header.png'),
40+
'/products/optimizing-collections': require('../../assets/optimizing-collections-header.png')
4041
}
4142
};
4243
},

‎src/pages/productsPreview.vue

Copy file name to clipboardExpand all lines: src/pages/productsPreview.vue
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ export default {
9696
'productPrice': '¥69.00',
9797
'authorList': 'Chris Eidhof,Airspeed Velocity 著',
9898
'translatorList': '王巍 译'
99+
},
100+
'/products/optimizing-collections/preview': {
101+
'productTitle': '集合类型优化',
102+
'productPrice': '¥59.00',
103+
'authorList': 'Károly Lőrentey 著',
104+
'translatorList': '王巍 陈聿菡 译'
99105
}
100106
}
101107
};

‎src/router/index.js

Copy file name to clipboardExpand all lines: src/router/index.js
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ export default new Router({
5151
path: 'advanced-swift',
5252
component: ProductsDetailInfo
5353
},
54+
{
55+
path: 'optimizing-collections',
56+
component: ProductsDetailInfo
57+
},
5458
{
5559
path: 'swifter-tips/preview',
5660
component: ProductsPreview
@@ -66,6 +70,10 @@ export default new Router({
6670
{
6771
path: 'advanced-swift/preview',
6872
component: ProductsPreview
73+
},
74+
{
75+
path: 'optimizing-collections/preview',
76+
component: ProductsPreview
6977
}
7078
]
7179
},

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.