|
@@ -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 {
|