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
2edde7ad
You need to sign in or sign up before continuing.
Commit
2edde7ad
authored
Sep 05, 2025
by
nick zheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'beta' into 'master'
chore: 首页跳转 See merge request
!242
parents
685d48e7
b77a7cab
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
29 additions
and
10 deletions
+29
-10
base-url.ts
src/config/base-url.ts
+5
-0
sidebar.vue
src/layout/components/sidebar/sidebar.vue
+8
-1
index.vue
src/layout/index.vue
+3
-0
en.yaml
src/locales/langs/en.yaml
+2
-1
zh-cn.yaml
src/locales/langs/zh-cn.yaml
+1
-0
zh-hk.yaml
src/locales/langs/zh-hk.yaml
+1
-0
home.ts
src/router/modules/home.ts
+1
-1
multi-model-dialogue.vue
src/views/multi-model-dialogue/multi-model-dialogue.vue
+1
-1
personal-app-setting.vue
...sonal-space/personal-app-setting/personal-app-setting.vue
+1
-1
share-application-mobile.vue
src/views/share/share-application-mobile.vue
+2
-2
share-application-web.vue
src/views/share/share-application-web.vue
+3
-3
locales.d.ts
types/locales.d.ts
+1
-0
No files found.
src/config/base-url.ts
View file @
2edde7ad
...
...
@@ -15,4 +15,9 @@ export const Domain_Name: Record<'DEV' | 'PROD', string> = {
PROD
:
'super-modellink.gsstcloud.com'
,
}
export
const
DOMAIN_ORIGIN
:
Record
<
'DEV'
|
'PROD'
,
string
>
=
{
DEV
:
'https://poc-sit.gsstcloud.com'
,
PROD
:
'https://model-link.gsstcloud.com'
,
}
export
const
TEXTTOSPEECH_WS_URL
=
`wss://
${
Domain_Name
[
ENV
||
'DEV'
]}
/websocket/textToSpeechTC.ws`
src/layout/components/sidebar/sidebar.vue
View file @
2edde7ad
...
...
@@ -5,6 +5,7 @@ import { useI18n } from 'vue-i18n'
import
{
Plus
,
Logout
,
Me
,
TransactionOrder
}
from
'@icon-park/vue-next'
import
type
{
MenuOption
}
from
'naive-ui'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
DOMAIN_ORIGIN
}
from
'@/config/base-url'
// import LanguageSetting from '@/components/language-setting/language-setting.vue'
const
{
t
}
=
useI18n
()
...
...
@@ -21,7 +22,7 @@ const currentMenuValue = ref('')
const
menuOptions
=
computed
<
MenuOption
[]
>
(()
=>
{
return
[
{
label
:
()
=>
h
(
'div'
,
{},
t
(
'
router_title_module.
home'
)),
label
:
()
=>
h
(
'div'
,
{},
t
(
'
common_module.back_
home'
)),
key
:
'Home'
,
icon
:
()
=>
h
(
'i'
,
{
class
:
'iconfont icon-home'
}),
},
...
...
@@ -109,6 +110,12 @@ function handleToLogin() {
}
function
handleMenuValueChange
(
key
:
string
)
{
if
(
key
===
'Home'
)
{
const
ENV
=
import
.
meta
.
env
.
VITE_APP_ENV
window
.
open
(
`
${
DOMAIN_ORIGIN
[
ENV
||
'DEV'
]}
/admin/intelligent-application-platform/home`
,
'_self'
)
return
}
router
.
push
({
name
:
key
})
}
...
...
src/layout/index.vue
View file @
2edde7ad
...
...
@@ -2,6 +2,7 @@
import
{
ref
,
watchEffect
}
from
'vue'
import
Sidebar
from
'./components/sidebar/sidebar.vue'
import
{
useRoute
}
from
'vue-router'
import
{
DOMAIN_ORIGIN
}
from
'@/config/base-url'
const
route
=
useRoute
()
...
...
@@ -11,6 +12,8 @@ const isShowMainContentContainerPadding = ref(true)
watchEffect
(()
=>
{
if
(
route
.
name
===
'Home'
)
{
const
ENV
=
import
.
meta
.
env
.
VITE_APP_ENV
window
.
open
(
`
${
DOMAIN_ORIGIN
[
ENV
||
'DEV'
]}
/admin/intelligent-application-platform/home`
,
'_self'
)
isShowMainContentContainerPadding
.
value
=
false
}
else
if
(
!
isShowMainContentContainerPadding
.
value
)
{
isShowMainContentContainerPadding
.
value
=
true
...
...
src/locales/langs/en.yaml
View file @
2edde7ad
...
...
@@ -168,6 +168,7 @@ common_module:
mermaid_render_error
:
'
There
is
an
error
in
the
chart
rendering.
Please
ask
again'
mermaid_rendering
:
'
The
chart
is
being
rendered...'
example
:
'
Ex.'
back_home
:
'
Back
to
home'
dialogue_module
:
continue_question_message
:
'
You
can
keep
asking
questions'
...
...
@@ -320,7 +321,7 @@ home_module:
business_marketing_list
:
t_title_1
:
'
Event
planning'
t_doc_1
:
'
Efficiently
customize
various
planning
schemes'
t_template_1
:
"
I
am
an
[[event
planner]],
please
help
me
write
a
proposal
for
a
[[music
exchange
event]],
including
but
not
limited
to
the
planning
theme,
planning
objectives,
detailed
plan,
required
resources,
planning
budget,
risk
management,
and
effectiveness
evaluation."
t_template_1
:
'
I
am
an
[[event
planner]],
please
help
me
write
a
proposal
for
a
[[music
exchange
event]],
including
but
not
limited
to
the
planning
theme,
planning
objectives,
detailed
plan,
required
resources,
planning
budget,
risk
management,
and
effectiveness
evaluation.'
t_title_2
:
'
Market
research'
t_doc_2
:
'
Accurate
insight
into
the
market'
...
...
src/locales/langs/zh-cn.yaml
View file @
2edde7ad
...
...
@@ -167,6 +167,7 @@ common_module:
mermaid_render_error
:
'
图表渲染出错了,请重新提问'
mermaid_rendering
:
'
图表正在渲染中...'
example
:
'
示例'
back_home
:
'
返回首页'
dialogue_module
:
continue_question_message
:
'
你可以继续提问'
...
...
src/locales/langs/zh-hk.yaml
View file @
2edde7ad
...
...
@@ -167,6 +167,7 @@ common_module:
mermaid_render_error
:
'
圖表渲染出錯了,請重新提問'
mermaid_rendering
:
'
圖表正在渲染中...'
example
:
'
示例'
back_home
:
'
返回首頁'
dialogue_module
:
continue_question_message
:
'
你可以繼續提問'
...
...
src/router/modules/home.ts
View file @
2edde7ad
...
...
@@ -11,7 +11,7 @@ export default [
title
:
''
,
},
component
:
Layout
,
redirect
:
'/
hom
e'
,
redirect
:
'/
personal-spac
e'
,
children
:
[
{
path
:
'/home'
,
...
...
src/views/multi-model-dialogue/multi-model-dialogue.vue
View file @
2edde7ad
...
...
@@ -128,7 +128,7 @@ async function handleGetApplicationDetail() {
}
})
.
catch
(()
=>
{
router
.
replace
({
name
:
'
Home
'
})
router
.
replace
({
name
:
'
Root
'
})
})
}
...
...
src/views/personal-space/personal-app-setting/personal-app-setting.vue
View file @
2edde7ad
...
...
@@ -68,7 +68,7 @@ async function handleGetAgentDetail(agentId: string) {
}
})
.
catch
(()
=>
{
router
.
replace
({
name
:
'
Home
'
})
router
.
replace
({
name
:
'
Root
'
})
})
}
...
...
src/views/share/share-application-mobile.vue
View file @
2edde7ad
...
...
@@ -113,7 +113,7 @@ onMounted(async () => {
return
}
router
.
replace
({
name
:
'
Home
'
})
router
.
replace
({
name
:
'
Root
'
})
})
onUnmounted
(()
=>
{
...
...
@@ -129,7 +129,7 @@ async function handleGetApplicationDetail() {
document
.
title
=
agentApplicationConfig
.
value
.
baseInfo
.
agentTitle
})
.
catch
(()
=>
{
router
.
replace
({
name
:
'
Home
'
})
router
.
replace
({
name
:
'
Root
'
})
})
}
...
...
src/views/share/share-application-web.vue
View file @
2edde7ad
...
...
@@ -170,7 +170,7 @@ onMounted(async () => {
return
}
router
.
replace
({
name
:
'
Home
'
})
router
.
replace
({
name
:
'
Root
'
})
})
onUnmounted
(()
=>
{
...
...
@@ -193,7 +193,7 @@ async function handleGetApplicationDetail() {
}
})
.
catch
(()
=>
{
router
.
replace
({
name
:
'
Home
'
})
router
.
replace
({
name
:
'
Root
'
})
})
}
...
...
@@ -224,7 +224,7 @@ function getAutoPlayByAgentId() {
function
handleBack
()
{
if
(
!
history
.
state
.
back
)
{
router
.
replace
({
name
:
'
Home
'
,
name
:
'
Root
'
,
})
}
else
{
router
.
back
()
...
...
types/locales.d.ts
View file @
2edde7ad
...
...
@@ -167,6 +167,7 @@ declare namespace I18n {
mermaid_render_error
:
string
mermaid_rendering
:
string
example
:
string
back_home
:
string
dialogue_module
:
{
continue_question_message
:
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