diff --git a/pages/component/rich-text/rich-text.test.js b/pages/component/rich-text/rich-text.test.js index a51444168f221dee36634139f740f9ee911e28c7..70644939ca119f575f78068732f010b2c98ae385 100644 --- a/pages/component/rich-text/rich-text.test.js +++ b/pages/component/rich-text/rich-text.test.js @@ -18,6 +18,7 @@ describe('rich-text-test', () => { it('richt-text-height', async () => { + await page.waitFor(1000); let beforeValue = await page.data('richTextHeight') await page.callMethod('changeText') await page.waitFor(500) diff --git a/pages/component/rich-text/rich-text.uvue b/pages/component/rich-text/rich-text.uvue index 0744c1b5d76d1c0b1767f09b43809b42165a81a1..2ba06f2f4094d30501e5d35364d4330c436ef1fc 100644 --- a/pages/component/rich-text/rich-text.uvue +++ b/pages/component/rich-text/rich-text.uvue @@ -36,7 +36,7 @@ this.richTextElement = uni.getElementById('richtext') as UniElement setTimeout(() => { this.updateRichTextHeight() - }, 500) + }, 1200) }, methods: { changeText() {