Rumah > Soal Jawab > teks badan
代言2017-06-20 10:08:56
Perlu mengkonfigurasi penghalaan
router.map({
'/appinfo': {
component: function(resolve) {
require(['./pages/Appinfo.vue'], resolve);
}
},
'/interface': {
component: function(resolve) {
require(['./pages/Interface.vue'], resolve);
},
subRoutes: {
// 接口配置
'/setting': {
component: function(resolve) {
require(['./pages/InterfaceSetting.vue'], resolve);
}
},
// 异常监控
'/exception': {
component: function(resolve) {
require(['./pages/InterfaceException.vue'], resolve);
}
}
}
}
}