Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
6e3eff9e
Commit
6e3eff9e
authored
Oct 15, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代理ws
parent
5c6613be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
App.vue
src/App.vue
+1
-1
vue.config.js
vue.config.js
+8
-0
No files found.
src/App.vue
View file @
6e3eff9e
...
@@ -37,7 +37,7 @@ export default defineComponent({
...
@@ -37,7 +37,7 @@ export default defineComponent({
connectionState
.
error
=
false
;
connectionState
.
error
=
false
;
initError
.
value
=
false
;
initError
.
value
=
false
;
const
fmp
=
new
FzmMessageProtocol
(
"ws://172.16.101.107:8888/sub"
);
const
fmp
=
new
FzmMessageProtocol
(
`ws://
${
window
.
location
.
host
}
/proxyWs/sub`
);
const
UserMsg
=
getUserMsg
();
const
UserMsg
=
getUserMsg
();
if
(
!
UserMsg
)
{
if
(
!
UserMsg
)
{
...
...
vue.config.js
View file @
6e3eff9e
...
@@ -7,6 +7,14 @@ module.exports = {
...
@@ -7,6 +7,14 @@ module.exports = {
pathRewrite
:
{
pathRewrite
:
{
'^/proxyApi'
:
''
,
'^/proxyApi'
:
''
,
},
},
},
'/proxyWs'
:
{
target
:
'ws://172.16.101.107:8888'
,
changeOrigin
:
true
,
ws
:
true
,
pathRewrite
:
{
'^/proxyWs'
:
''
}
}
}
},
},
},
},
...
...
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