diff --git a/pages/component/button/button.uvue b/pages/component/button/button.uvue index 11e682f3ba01f32aa376e0fe481533bade498013..e511c7fb4850fab76029d6c3ee773056b38551b5 100644 --- a/pages/component/button/button.uvue +++ b/pages/component/button/button.uvue @@ -11,8 +11,11 @@ type_enum: [{ "value": 0, "name": "default" }, { "value": 1, "name": "primary" }, { "value": 2, "name": "warn" }] as ItemType[], type_enum_current: 0, count: 0, - text: 'uni-app-x' + text: '' } + }, + onReady() { + this.text = 'uni-app-x' }, methods: { button_click() {