修复聊天气泡报错

This commit is contained in:
liaozetao
2024-04-16 15:51:00 +08:00
parent c3f5a03df5
commit 2b3cd29191

View File

@@ -368,7 +368,7 @@ export default {
$("#addForm #modal_type").val(row.type);
console.log(row.name)
let name = row.name;
if (name.startsWith('{') && name.endsWith('}')) {
if (Object.prototype.hasOwnProperty.call(name, 'zh') || Object.prototype.hasOwnProperty.call(name, 'ar') || Object.prototype.hasOwnProperty.call(name, 'en')) {
$("#modal_name").val(row.name.zh);
// 阿语名称
$("#ar_modal_name").val(row.name.ar);