Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
5f1fd92b
Commit
5f1fd92b
authored
Nov 08, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'beta' into 'master'
fix: 应用对话区分环境 See merge request
!55
parents
e094941f
dbbe8197
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
useEventSource.ts
src/composables/useEventSource.ts
+3
-1
fetch-event-stream-source.ts
...s/multi-model-dialogue/utils/fetch-event-stream-source.ts
+3
-1
No files found.
src/composables/useEventSource.ts
View file @
5f1fd92b
...
...
@@ -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
...
...
src/views/multi-model-dialogue/utils/fetch-event-stream-source.ts
View file @
5f1fd92b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment