Przeglądaj źródła

Merge branch 'dev-cmn' of https://s-20coaj910c.zht2.com/cmy/data-marketing-platform into dev-ly

luoy 23 godzin temu
rodzic
commit
2b46c33c9e

+ 7 - 2
src/views/count/churn/portrait/components/UserInfo.vue

@@ -31,14 +31,14 @@
       </div>
       <div class="title">{{ title }}</div>
       <div class="tags" style="min-height: 23px;">
-        <div class="tag" v-for="tag in tags" :key="tag">{{ tag }}</div>
+        <div class="tag" v-for="tag in newTags" :key="tag">{{ tag }}</div>
       </div>
     </div>
     <div class="tips">{{ tips }}</div>
   </div>
 </template>
 <script setup lang="ts">
-defineProps({
+const props = defineProps({
   type: {
     type: Boolean,
     default: true
@@ -56,6 +56,11 @@ defineProps({
     default: ''
   }
 })  
+const newTags = ref(props.tags);
+watch(props.tags, () => {
+  console.log(props.tags);
+  newTags.value = props.tags;
+});
 </script>
 <style scoped lang="scss">
 .user-info {