修复 多语言删除提示

This commit is contained in:
yf 2025-03-23 23:32:37 +08:00
parent 3b2449710d
commit 026072da43
3 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ const addProduct = () => {
const delProduct = () => {
useMessage().confirm(t("delDataMessage")).then(() => {
that.tableData = that.tableData.filter(item => item.productId !== that.selectRow.productId)
useMessage().notifySuccess(t("delSuccess"));
useMessage().notifySuccess(t("common.delSuccess"));
emit('delRow', that.selectRow);
emitter.emit(PRODUCT_DEL_ROW_EVENT, that.selectRow);
if (that.tableData.length > 0) {

View File

@ -212,7 +212,7 @@ const delItem = (item) => {
console.log("that.tableData", that.tableData, item)
if (index != -1) {
that.tableData.splice(index, 1);
useMessage().notifySuccess(t("delSuccess"));
useMessage().notifySuccess(t("common.delSuccess"));
}
emit("change", that.tableData)
}

View File

@ -779,7 +779,7 @@ onMounted(() => {
queryParams.id = '';
if (route.query) {
queryParams.id = route.query.id ?? '';
queryParams.type = route.query.type ?? '';
queryParams.type = route.query._t ?? '';
}
})