杨磊
2025-07-24 102bb7c365a3437128aabb3cb05295d6eeac476a
src/child.ts
@@ -8,8 +8,118 @@
//   console.log("父层变化:",state, prev)
//   // window.qiankunState = state;
// })
const testBooks = {
  botany: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/botany',
    container: '#container',
    activeRule: '/home' //匹配所有以/subPath开头的为子应用
  },
  aurturingAndEducationAged0to3: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/aurturingAndEducationAged0to3',
    container: '#container',
    activeRule: '/home' //匹配所有以/subPath开头的为子应用
  },
  childcareInstitutionsManagement: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/childcareInstitutionsManagement',
    container: '#container',
    activeRule: '/home' //匹配所有以/subPath开头的为子应用
  },
  preschoolGameGuidance: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/preschoolGameGuidance',
    container: '#container',
    activeRule: '/home'
  },
  kindergartenLanguageActivity: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/kindergartenLanguageActivity',
    container: '#container',
    activeRule: '/home'
  },
  preschoolEvaluation: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/preschoolEvaluation',
    container: '#container',
    activeRule: '/home'
  },
  preschoolBasicKnowledge: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/preschoolBasicKnowledge',
    container: '#container',
    activeRule: '/home'
  },
  OralAndBroadcasting: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/OralAndBroadcasting',
    container: '#container',
    activeRule: '/home'
  },
  cognitiveLanDevEduAges0to3: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/cognitiveLanDevEduAges0to3',
    container: '#container',
    activeRule: '/home'
  },
  toddlerSportsSafetyProtection: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/toddlerSportsSafetyProtection',
    container: '#container',
    activeRule: '/home'
  },
  artInitiationForAges0to3: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/artInitiationForAges0to3',
    container: '#container',
    activeRule: '/home'
  },
  childIllnessPreventionCare: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/childIllnessPreventionCare',
    container: '#container',
    activeRule: '/home'
  },
  behaviorObserveAndGuid: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/behaviorObserveAndGuid',
    container: '#container',
    activeRule: '/home'
  },
  hydraulicTransmission: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/hydraulicTransmission',
    container: '#container',
    activeRule: '/home'
  },
  foodSensoryInspection: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/foodSensoryInspection',
    container: '#container',
    activeRule: '/home'
  },
  MMVRTCMP: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/MMVRTCMP',
    container: '#container',
    activeRule: '/home'
  },
  toddlerGameImplementation: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/toddlerGameImplementation',
    container: '#container',
    activeRule: '/home' //匹配所有以/subPath开头的为子应用
  },
  regionalAnatomy: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/regionalAnatomy',
    container: '#container',
    activeRule: '/home' //匹配所有以/subPath开头的为子应用
  }
}
export const microApps = {
const jsekBooks = {
  childHealth: {
    // - 必选,微应用的名称,微应用之间必须确保唯一
    name: 'app-content',
@@ -59,44 +169,93 @@
    container: '#container',
    activeRule: '/home' //匹配所有以/subPath开头的为子应用
  },
  civilAviation:{
  civilAviation: {
    name: 'app-content',
    entry: '//jsek.bnuic.com/books/book/civilAviation',
    container: '#container',
    activeRule: '/home' //匹配所有以/subPath开头的为子应用
  },
  civilServices:{
  civilServices: {
    name: 'app-content',
    entry: '//jsek.bnuic.com/books/book/civilServices',
    container: '#container',
    activeRule: '/home' //匹配所有以/subPath开头的为子应用
  },
  meetingPlanners:{
  meetingPlanners: {
    name: 'app-content',
    entry: '//jsek.bnuic.com/books/book/meetingPlanners',
    container: '#container',
    activeRule: '/home' //匹配所有以/subPath开头的为子应用
  },
  aviationBasicSkills:{
  aviationBasicSkills: {
    name: 'app-content',
    entry: '//jsek.bnuic.com/books/book/aviationBasicSkills',
    container: '#container',
    activeRule: '/home' //匹配所有以/subPath开头的为子应用
  },
  aviationSafety:{
  aviationSafety: {
    name: 'app-content',
    entry: '//jsek.bnuic.com/books/book/aviationSafety',
    container: '#container',
    activeRule: '/home' //匹配所有以/subPath开头的为子应用
  },
  botany:{
  aviationEtiquette: {
    name: 'app-content',
    entry: '//182.92.203.7:3007/books/book/botany',
    entry: '//jsek.bnuic.com/books/book/aviationEtiquette',
    container: '#container',
    activeRule: '/home' //匹配所有以/subPath开头的为子应用
  },
  toddlerGameImplementation: {
    name: 'app-content',
    entry: '//jsek.bnuic.com/books/book/toddlerGameImplementation',
    container: '#container',
    activeRule: '/home' //匹配所有以/subPath开头的为子应用
  },
  kindergartenActivitiesDesignGuidance: {
    name: 'app-content',
    entry: '//jsek.bnuic.com/books/book/kindergartenActivitiesDesignGuidance',
    container: '#container',
    activeRule: '/home'
  },
  textToddlerSportsSafetyProtection: {
    name: 'app-content',
    entry: '//jsek.bnuic.com/books/book/textToddlerSportsSafetyProtection',
    container: '#container',
    activeRule: '/home'
  },
  OralAndBroadcasting: {
    name: 'app-content',
    entry: '//jsek.bnuic.com/books/book/OralAndBroadcasting',
    container: '#container',
    activeRule: '/home'
  }
}
const tourismBooks = {
  policiesAndRegulations: {
    name: 'app-content',
    entry: '//www.tepcb.com/books/book/policiesAndRegulations',
    container: '#container',
    activeRule: '/home'
  },
  aviationPassengerTransport6th: {
    name: 'app-content',
    entry: '//www.tepcb.com/books/book/aviationPassengerTransport6th',
    container: '#container',
    activeRule: '/home'
  },
  hotelEnglishTrainingBrochure2nd: {
    name: 'app-content',
    entry: '//www.tepcb.com/books/book/hotelEnglishTrainingBrochure2nd',
    container: '#container',
    activeRule: '/home'
  }
}
export const microApps = testBooks
window.qiankunActions = actions
export default actions