Commit 5fc5c46e authored by 王炽's avatar 王炽

6666

parent e93b0665
......@@ -53,8 +53,9 @@ const props = defineProps({
// 处理标题文本,超过14个字显示省略号
const displayTitle = computed(() => {
const title = `完成${props.taskTitle}任务`;
if (title.length > 14) {
return title.substring(0, 14) + '...';
// const title = '完成任务完成任务完成任务任务啊啊啊';//`完成${props.taskTitle}任务`;
if (title.length > 16) {
return title.substring(0, 15) + '...';
}
console.log('title:', title);
return title;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment