@@ -33,6 +33,7 @@ export enum Chapters {
3333 xrobot_platform_others_console = "/xrobot/platform/others/console/" ,
3434 xrobot_platform_others_device = "/xrobot/platform/others/device/" ,
3535 xrobot_platform_others_device_net_config = "/xrobot/platform/others/net-config/" ,
36+ xrobot_platform_others_device_device_bind = "/xrobot/platform/others/device/device-bind/" ,
3637 // faq
3738 xrobot_faq = "/xrobot/faq/" ,
3839}
@@ -154,6 +155,20 @@ const items_xrobot_platform_net_config = [
154155 } ,
155156] ;
156157
158+ const items_xrobot_platform_device_bind = [
159+ {
160+ text : "绑定设备" ,
161+ link : Chapters . xrobot_platform_others_device_device_bind ,
162+ collapsed : true ,
163+ items : [
164+ { text : "通过微信小程序" , link : "mp" } ,
165+ { text : "通过浏览器" , link : "browser" } ,
166+ ] . map ( ( item ) =>
167+ apply_prefix ( item , Chapters . xrobot_platform_others_device_device_bind )
168+ ) ,
169+ } ,
170+ ] ;
171+
157172export const items_xrobot_platform_device = [
158173 {
159174 text : "设备配置与使用" ,
@@ -164,6 +179,7 @@ export const items_xrobot_platform_device = [
164179 apply_prefix ( item , Chapters . xrobot_platform_others_device )
165180 ) ,
166181 ...items_xrobot_platform_net_config ,
182+ ...items_xrobot_platform_device_bind ,
167183 ] ,
168184 } ,
169185] ;
@@ -304,6 +320,10 @@ export const ChapterItems: Record<Chapters, ChapterItem[]> = {
304320 gobackItem ( Chapters . xrobot_platform_others ) ,
305321 ...items_xrobot_platform_net_config ,
306322 ] ,
323+ [ Chapters . xrobot_platform_others_device_device_bind ] : [
324+ gobackItem ( Chapters . xrobot_platform_others ) ,
325+ ...items_xrobot_platform_device_bind ,
326+ ] ,
307327 // faq
308328 [ Chapters . xrobot_faq ] : [ gobackItem ( Chapters . xrobot ) , ...items_xrobot_faq ] ,
309329} ;
0 commit comments