Skip to content

Commit

Permalink
style: 优化由于 Mock 引起的导出报错提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Dec 14, 2023
1 parent 97c273f commit 349899b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion continew-admin-ui/src/components/crud/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function download(
Notification.warning({
title: '警告',
content:
"如果您正在访问演示环境,点击导出会报错。这是由于演示环境开启了 Mock.js,而 Mock.js 会将 responseType 设置为 '',这不仅会导致关键判断出错,也会导致导出的文件无法打开。",
"由于部分模拟数据需要,前端默认启用了 Mock.js,而 Mock.js 会将 responseType 设置为 '',这不仅会导致关键判断出错,也会导致导出的文件无法打开,实际开发时自行关闭 Mock 即可。",
duration: 10000,
closable: true,
});
Expand Down

0 comments on commit 349899b

Please sign in to comment.