Commit dbbe8197 authored by nick zheng's avatar nick zheng

fix: 应用对话区分环境

parent 18a5526f
......@@ -4,7 +4,9 @@ import { useUserStore } from '@/store/modules/user'
import { useSystemLanguageStore } from '@/store/modules/system-language'
import { languageKeyTransform } from '@/utils/language-key-transform'
const EVENT_SOURCE_BASE_URL = `${BASE_URLS[window.ENV || 'DEV']}`
const ENV = import.meta.env.VITE_APP_ENV
const EVENT_SOURCE_BASE_URL = `${BASE_URLS[ENV || 'DEV']}`
export function fetchCustomEventSource(config: {
path: string
......
......@@ -4,7 +4,9 @@ import { useUserStore } from '@/store/modules/user'
import { useSystemLanguageStore } from '@/store/modules/system-language'
import { languageKeyTransform } from '@/utils/language-key-transform'
const EVENT_SOURCE_BASE_URL = `${BASE_URLS[window.ENV || 'DEV']}`
const ENV = import.meta.env.VITE_APP_ENV
const EVENT_SOURCE_BASE_URL = `${BASE_URLS[ENV || 'DEV']}`
export function fetchEventStreamSource(config: {
path: string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment