refactor: replace uni.showToast calls with shared toast

consolidates repeated toast display logic into a centralized utility, reducing code duplication and standardizing toast behavior across the codebase
This commit is contained in:
duanshuwen
2026-05-29 21:35:10 +08:00
parent 656c592da2
commit 71aa343efb
14 changed files with 36 additions and 106 deletions

View File

@@ -95,10 +95,7 @@ import { SEND_MESSAGE_CONTENT_TEXT } from "@/constants/constant";
const faq = ["古桥有什么传说", "最佳观赏时间", "旁边还有什么景点"];
const showToast = (title) => {
uni.showToast({
title,
icon: "none",
});
showToast(title);
};
// 打开地图