Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
Project
Project
Details
Activity
Releases
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
华国豪
CRM
Commits
ec16fcdd
Commit
ec16fcdd
authored
Sep 16, 2022
by
18224442217
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e100ec8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
index.js
src/plugins/index.js
+4
-2
vue.config.js
vue.config.js
+13
-2
No files found.
src/plugins/index.js
View file @
ec16fcdd
...
...
@@ -13,13 +13,15 @@ export default {
Vue
.
prototype
.
domainManager
=
function
()
{
//CRM API
let
domainUrl
=
""
;
domainUrl
=
"http://192.168.10.46:8500"
;
// domainUrl = "http://192.168.10.46:8500";
domainUrl
=
"http://crm.oytour.com"
;
// domainUrl = "http://192.168.10.36:8098";
//domainUrl = "http://localhost:5003";
let
locationName
=
window
.
location
.
hostname
;
//旅游ERPApi
let
domainPostUrl
=
""
domainPostUrl
=
"http://192.168.10.36:8083"
;
// domainPostUrl = "http://192.168.10.36:8083";
domainPostUrl
=
"http://reborn.oytour.com"
//domainPostUrl = "http://192.168.10.46";
if
(
this
.
isOnline
())
{
if
(
window
.
location
.
host
.
indexOf
(
'fcrmyx.oytour.com'
)
!=
-
1
)
{
...
...
vue.config.js
View file @
ec16fcdd
...
...
@@ -8,8 +8,19 @@ module.exports = {
}
},
devServer
:
{
host
:
'localhost'
,
port
:
8080
,
// host: 'localhost',
// port: 8080,
proxy
:
{
'/api'
:
{
target
:
'https://fcrmyx.oytour.com/'
,
//接口域名
changeOrigin
:
true
,
//是否跨域
ws
:
true
,
//是否代理 websockets
secure
:
true
,
//是否https接口
pathRewrite
:
{
//路径重置
'^/api'
:
''
}
}
}
},
externals
:
[
'BMap'
,
...
...
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