kyy
2025-02-11 bb05da47c66341aa5d65c965528271d03f37a1e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<template>
  <view>
    <text>这是子页面2的内容</text>
    <text>参数A: {{ paramA }}</text>
    <text>参数B: {{ paramB }}</text>
  </view>
</template>
 
<script>
export default {
  name: 'SubPage2',
  props: {
    paramA: {
      type: String,
      default: ''
    },
    paramB: {
      type: String,
      default: ''
    }
  },
  created() {
    console.log('SubPage2 created with paramA:', this.paramA);
    console.log('SubPage2 created with paramB:', this.paramB);
  }
}
</script>