use Message instead of Toast

This commit is contained in:
Timi
2026-08-22 01:08:23 +08:00
parent 94c17e6d81
commit e2af521996
46 changed files with 291 additions and 289 deletions
+4 -4
View File
@@ -143,7 +143,7 @@
</template>
<script setup lang="ts">
import { Toast } from "tdesign-mobile-vue";
import { Message } from "@/utils/message";
import { AttachmentAPI, PassTimeLabel, Text, useUserStore } from "timi-web";
import CustomerAPI from "@/api/CustomerAPI";
import PointAPI from "@/api/PointAPI";
@@ -264,7 +264,7 @@ async function loadCustomer(): Promise<void> {
customerTagList.value = [];
selectedTagIdList.value = [];
console.warn("客户详情加载失败", err);
Toast.warning("客户详情加载失败");
Message.warning("客户详情加载失败");
}
}
@@ -306,7 +306,7 @@ async function handleTagSelected(tagList: Tag[]): Promise<void> {
});
customerTagList.value = tagList;
selectedTagIdList.value = tagList.map(item => item.id || "").filter(Boolean);
Toast.success("客户标签已保存");
Message.success("客户标签已保存");
}
const inviter = computed(() => customer.value?.introducerCustomer);
@@ -346,7 +346,7 @@ async function removeCustomer(id: string): Promise<void> {
isRemoving.value = true;
try {
await CustomerAPI.remove(id);
Toast.success("客户已删除");
Message.success("客户已删除");
await router.replace("/management/customers");
} finally {
isRemoving.value = false;