|
@@ -153,7 +153,7 @@ import {
|
|
|
import { nextTick } from "vue";
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
import useUserStore from '@/store/modules/user'
|
|
|
-import { patternNginxExportWsUrl } from "@/utils/ws"
|
|
|
+import { patternNginxExportWsUrl, getWsExportUrl } from "@/utils/ws"
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
/** 字典数组区 */
|
|
|
const { outsource_before_checkout_verify_status } = proxy.useDict(
|
|
@@ -406,7 +406,8 @@ async function createWebSocket(id, token) {
|
|
|
// const options = { headers: { Authorization: 'Bearer ' + token } }
|
|
|
// console.log(options)
|
|
|
var itemUrl = document.location.origin;
|
|
|
- var wsUrl = patternNginxExportWsUrl();
|
|
|
+ // var wsUrl = patternNginxExportWsUrl();
|
|
|
+ var wsUrl = getWsExportUrl()
|
|
|
console.log(wsUrl)
|
|
|
// if (itemUrl.includes(hostIp)) {
|
|
|
// wsUrl = innetUrl;
|