修复 多语言删除提示
This commit is contained in:
parent
3b2449710d
commit
026072da43
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 ?? '';
|
||||
}
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue