diff --git a/src/cool/modules/chat/components/chat.vue b/src/cool/modules/chat/components/chat.vue
index cd5502d..2665258 100644
--- a/src/cool/modules/chat/components/chat.vue
+++ b/src/cool/modules/chat/components/chat.vue
@@ -39,12 +39,7 @@
@@ -61,6 +56,7 @@ import Message from "./message.vue";
import Input from "./input.vue";
import { parseContent } from "../utils";
import { useRefs } from "/@/core";
+import NotifyMp3 from "../static/notify.mp3";
export default defineComponent({
name: "cl-chat",
@@ -255,6 +251,7 @@ export default defineComponent({
});
return {
+ NotifyMp3,
refs,
session,
sessionVisible,
diff --git a/src/cool/modules/crud/components/context-menu/context-menu.tsx b/src/cool/modules/crud/components/context-menu/context-menu.tsx
index 8b7b9d8..d4fde4b 100644
--- a/src/cool/modules/crud/components/context-menu/context-menu.tsx
+++ b/src/cool/modules/crud/components/context-menu/context-menu.tsx
@@ -14,7 +14,7 @@ export default defineComponent({
const { refs, setRefs }: any = useRefs();
// 菜单是否可见
- const visible = ref(props.visible);
+ const visible2 = ref(props.visible);
// 按钮列表
const list = ref>([]);
@@ -58,7 +58,7 @@ export default defineComponent({
// 关闭菜单
function close() {
- visible.value = false;
+ visible2.value = false;
ids.value = "";
}
@@ -95,7 +95,7 @@ export default defineComponent({
stopDefault(event);
// 显示菜单
- visible.value = true;
+ visible2.value = true;
return {
close
@@ -124,7 +124,7 @@ export default defineComponent({
}
onMounted(function () {
- if (visible.value) {
+ if (visible2.value) {
// 添加到 body 下
document.body.appendChild(refs.value["context-menu"]);
// 关闭事件
@@ -139,7 +139,7 @@ export default defineComponent({
return {
refs,
- visible,
+ visible2,
ids,
style,
list,
@@ -193,7 +193,7 @@ export default defineComponent({
}
return (
- ctx.visible && (
+ ctx.visible2 && (