diff --git a/env/.env.test b/env/.env.test index a71c971..e7f905e 100644 --- a/env/.env.test +++ b/env/.env.test @@ -2,10 +2,10 @@ ENV = 'development' VITE_BASE=/ VUE_APP_PREVIEW=false -VITE_BASE_API=http://192.168.88.21:9503 -VITE_EPR_BASEURL=http://114.218.158.24:9020 -VITE_SOCKET_API=ws://192.168.88.21:9504 -# VITE_BASE_API=http://114.218.158.24:8503 -# VITE_SOCKET_API=ws://114.218.158.24:8504 +#VITE_BASE_API=http://192.168.88.21:9503 +#VITE_SOCKET_API=ws://192.168.88.21:9504 + VITE_BASE_API=http://114.218.158.24:8503 + VITE_SOCKET_API=ws://114.218.158.24:8504 +VITE_EPR_BASEURL=http://114.218.158.24:9020 VUE_APP_WEBSITE_NAME="" \ No newline at end of file diff --git a/src/components/confirm-box/index.vue b/src/components/confirm-box/index.vue new file mode 100644 index 0000000..2d53033 --- /dev/null +++ b/src/components/confirm-box/index.vue @@ -0,0 +1,49 @@ + + + + + \ No newline at end of file diff --git a/src/components/confirm-box/service.js b/src/components/confirm-box/service.js new file mode 100644 index 0000000..7ecce25 --- /dev/null +++ b/src/components/confirm-box/service.js @@ -0,0 +1,32 @@ +import { createVNode, nextTick, render } from 'vue' +import ConfirmBox from './index.vue' + +export function confirmBox(options) { + return new Promise((resolve, reject) => { + const container = document.createElement('div') + document.body.appendChild(container) + + const props = { + ...options, + show: false, + onCancel: () => { + reject() + + }, + onAfterLeave:()=>{ + render(null, container) + document.body.removeChild(container) + }, + onConfirm: () => { + resolve() + + }, + } + + const vnode = createVNode(ConfirmBox, props) + render(vnode, container) + nextTick(() => { + vnode.component.props.show = true + }) + }) +} \ No newline at end of file diff --git a/src/components/talk/message/FileMessage.vue b/src/components/talk/message/FileMessage.vue index d572506..37828ef 100644 --- a/src/components/talk/message/FileMessage.vue +++ b/src/components/talk/message/FileMessage.vue @@ -113,7 +113,7 @@ const handleDownload = () => {