|
@@ -3,6 +3,7 @@ import html2canvas from "html2canvas"
|
|
|
import { closeToast, showFailToast, showLoadingToast, showSuccessToast } from "vant"
|
|
|
import { defineComponent, toRefs, ref, reactive, onMounted, onUnmounted, nextTick } from "vue"
|
|
|
import styles from "./pen.module.scss"
|
|
|
+import { URL_WHITEBOARD } from "@/config/index"
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: "tools-pen",
|
|
@@ -23,7 +24,7 @@ export default defineComponent({
|
|
|
setup(props) {
|
|
|
const { show, isWhite } = toRefs(props)
|
|
|
const firstRender = ref(true)
|
|
|
- const src = /(localhost|192)/.test(location.host) ? "https://test.lexiaoya.cn/whiteboard-noCollab" : `${location.origin}/whiteboard-noCollab`
|
|
|
+ const src = URL_WHITEBOARD
|
|
|
|
|
|
const exportImg = (event: MessageEvent) => {
|
|
|
const data = event.data
|