Skip to content

Commit

Permalink
chroe: update setting about page for display verison
Browse files Browse the repository at this point in the history
  • Loading branch information
engigu committed Jan 19, 2025
1 parent bbca64a commit c1dc4f3
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions web/src/views/tabsTools/settings/view/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@
<div class="tips">
<el-text size="small">版本功能更新说明</el-text>
<el-icon>
<QuestionFilled @click="drawer = true; logText = TransHtml(desc)" />
<QuestionFilled @click="drawer = true; logText = desc" />
</el-icon>
</div>
</div>
</div>

<el-drawer v-model="drawer" :with-header="false">
<el-text v-html="logText" size="small"></el-text>
</el-drawer>

</template>

<script>
Expand Down Expand Up @@ -53,19 +51,12 @@ export default defineComponent({
}
}
const TransHtml = (raw) => {
if (raw) {
return raw.replace(/\n/g, '<br />')
}
return ''
}
onMounted(() => {
getAbout();
})
return {
...toRefs(state), handleChange, TransHtml
...toRefs(state), handleChange
}
}
Expand Down

0 comments on commit c1dc4f3

Please sign in to comment.