|
@@ -22,11 +22,11 @@ const fetchTos = async () => {
|
|
|
try {
|
|
try {
|
|
|
const res = await getTermsServiceListMax();
|
|
const res = await getTermsServiceListMax();
|
|
|
// 处理获取到的内容,确保格式良好
|
|
// 处理获取到的内容,确保格式良好
|
|
|
- const formattedContent = handleContentFormatting(res.data.content || '<p>暂无服务条款内容</p>');
|
|
|
|
|
|
|
+ const formattedContent = handleContentFormatting(res.data.content || '<p>内容加载失败</p>');
|
|
|
tosContent.value = DOMPurify.sanitize(formattedContent);
|
|
tosContent.value = DOMPurify.sanitize(formattedContent);
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
console.error('获取服务条款失败', error);
|
|
console.error('获取服务条款失败', error);
|
|
|
- tosContent.value = '<p>服务条款内容加载失败</p>';
|
|
|
|
|
|
|
+ tosContent.value = '<p>内容加载失败</p>';
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|