From 10a52665fc7128763f19f0260191b822c2484592 Mon Sep 17 00:00:00 2001 From: Malash Date: Tue, 14 Feb 2023 21:14:45 +0800 Subject: [PATCH] fix an issue of Baidu flatten text template that cause missing text on production mode --- .../templates/components/components.wxml/flatten.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/webpack-plugin/src/templates/components/components.wxml/flatten.tsx b/packages/webpack-plugin/src/templates/components/components.wxml/flatten.tsx index 9b95c10..8d49503 100644 --- a/packages/webpack-plugin/src/templates/components/components.wxml/flatten.tsx +++ b/packages/webpack-plugin/src/templates/components/components.wxml/flatten.tsx @@ -10,22 +10,22 @@ export const FlattenText = () => { return t` - {{item.text}} + {{item.${ids.text}}} - {{item.text}} + {{item.${ids.text}}} - {{item.text}} + {{item.${ids.text}}} - {{item.text}} + {{item.${ids.text}}} - {{item.text}} + {{item.${ids.text}}} - {{item.text}} + {{item.${ids.text}}}