diff --git a/resources/assets/js/directives/longpress.js b/resources/assets/js/directives/longpress.js index 0c159b129..33932ad9b 100644 --- a/resources/assets/js/directives/longpress.js +++ b/resources/assets/js/directives/longpress.js @@ -2,10 +2,10 @@ const isSupportTouch = "ontouchend" in document; // 长按或右键指令 const longpress = { bind: function (el, binding) { - let delay = 501, + let delay = 500, callback = binding.value; if ($A.isJson(binding.value)) { - delay = binding.value.delay || 501; + delay = binding.value.delay || 500; callback = binding.value.callback; } if (typeof callback !== 'function') { diff --git a/resources/assets/js/functions/common.js b/resources/assets/js/functions/common.js index abb322ea7..21c656820 100755 --- a/resources/assets/js/functions/common.js +++ b/resources/assets/js/functions/common.js @@ -599,6 +599,22 @@ } }, + /** + * 获取数组长度(处理数组不存在) + * @param array + * @returns {number|*} + */ + arrayLength(array) { + if (array) { + try { + return array.length; + } catch (e) { + return 0 + } + } + return 0; + }, + /** * 将数组或对象内容部分拼成字符串 * @param obj diff --git a/resources/assets/js/pages/manage/components/DialogView.vue b/resources/assets/js/pages/manage/components/DialogView.vue index 18e76c3f7..829fb4ee3 100644 --- a/resources/assets/js/pages/manage/components/DialogView.vue +++ b/resources/assets/js/pages/manage/components/DialogView.vue @@ -5,7 +5,13 @@ -
+
@@ -34,7 +40,7 @@
-
    +
    • {{$L('会议主题')}} {{msgData.msg.name}} @@ -47,7 +53,7 @@ {{$L('频道ID')}} {{msgData.msg.meetingid.replace(/^(.{3})(.{3})(.*)$/, '$1 $2 $3')}}
    • -
    • +
    • {{$L('点击加入会议')}}
    • @@ -59,9 +65,11 @@
{{$L("未知的消息类型")}}
+ +
-