diff --git a/arkui/ace_standard/src/main/js/default/pages/swiper/router/index.js b/arkui/ace_standard/src/main/js/default/pages/swiper/router/index.js index 7afcddbb95761e3a313545a0eac2afac0758ff2b..9721f49d0616078cb0aae52a6c487a881bb4434a 100644 --- a/arkui/ace_standard/src/main/js/default/pages/swiper/router/index.js +++ b/arkui/ace_standard/src/main/js/default/pages/swiper/router/index.js @@ -102,14 +102,13 @@ export default { onShow(){ // 通用属性 - // var prop1 = this.$element('prop1'); - // var name1 = prop1.dataSet.name - // var prop2 = this.$refs.prop2; - // var name2 = prop2.dataSet.name - // prompt.showToast({ - // message: 'prop1--' + name1 + '\nprop2--' + name2 - // }); - console.log("this page is onShow") + var prop1 = this.$element('prop1'); + var name1 = prop1.dataSet.name + var prop2 = this.$refs.prop2; + var name2 = prop2.dataSet.name + prompt.showToast({ + message: 'prop1--' + name1 + '\nprop2--' + name2 + }); }, changeTest(event){