Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shareConfig
Overview
Overview
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
gic-web
shareConfig
Commits
bdea5b04
Commit
bdea5b04
authored
Sep 19, 2022
by
曾经
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开发环境 域名替换
parent
c6110941
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
15 deletions
+15
-15
proxyList.js
config/proxyList.js
+4
-4
App.vue
src/App.vue
+1
-1
api.js
src/api/api.js
+1
-1
error.js
src/common/js/error.js
+1
-1
post-upload.vue
src/components/post-upload.vue
+2
-2
single-upload-center.vue
src/components/single-upload-center.vue
+2
-2
single-upload.vue
src/components/single-upload.vue
+2
-2
index.js
src/config/index.js
+1
-1
index.js
src/request/index.js
+1
-1
No files found.
config/proxyList.js
View file @
bdea5b04
...
@@ -9,28 +9,28 @@
...
@@ -9,28 +9,28 @@
module
.
exports
=
{
module
.
exports
=
{
proxyList
:
{
proxyList
:
{
'/api-auth/'
:
{
'/api-auth/'
:
{
target
:
'http://
gicdev.demogic
.com/api-auth/'
,
target
:
'http://
www.gicdev
.com/api-auth/'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
'^/api-auth'
:
''
'^/api-auth'
:
''
}
}
},
},
'/api-admin/'
:
{
'/api-admin/'
:
{
target
:
'http://
gicdev.demogic
.com/api-admin/'
,
target
:
'http://
www.gicdev
.com/api-admin/'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
'^/api-admin'
:
''
'^/api-admin'
:
''
}
}
},
},
'/api-plug/'
:
{
'/api-plug/'
:
{
target
:
'http://
gicdev.demogic
.com/api-plug/'
,
target
:
'http://
www.gicdev
.com/api-plug/'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
'^/api-plug'
:
''
'^/api-plug'
:
''
}
}
},
},
'/sharing-core-web/'
:
{
'/sharing-core-web/'
:
{
target
:
'http://
gicdev.demogic
.com/sharing-core-web/'
,
target
:
'http://
www.gicdev
.com/sharing-core-web/'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
'^/sharing-core-web'
:
''
'^/sharing-core-web'
:
''
...
...
src/App.vue
View file @
bdea5b04
...
@@ -22,7 +22,7 @@ export default {
...
@@ -22,7 +22,7 @@ export default {
},
},
created
()
{
created
()
{
this
.
baseUrl
=
window
.
location
.
origin
.
indexOf
(
'localhost'
)
>
-
1
?
'http://
gicdev.demogic
.com'
:
window
.
location
.
origin
;
this
.
baseUrl
=
window
.
location
.
origin
.
indexOf
(
'localhost'
)
>
-
1
?
'http://
www.gicdev
.com'
:
window
.
location
.
origin
;
this
.
_getUserInfo
();
this
.
_getUserInfo
();
this
.
changeTab
();
this
.
changeTab
();
},
},
...
...
src/api/api.js
View file @
bdea5b04
...
@@ -8,7 +8,7 @@ import {
...
@@ -8,7 +8,7 @@ import {
Vue
.
axios
.
defaults
.
timeout
=
25000
;
Vue
.
axios
.
defaults
.
timeout
=
25000
;
let
local
=
window
.
location
.
origin
;
let
local
=
window
.
location
.
origin
;
if
(
local
.
indexOf
(
'localhost'
)
!=
-
1
)
{
if
(
local
.
indexOf
(
'localhost'
)
!=
-
1
)
{
local
=
'http://
gicdev.demogic
.com'
;
local
=
'http://
www.gicdev
.com'
;
}
}
Vue
.
axios
.
interceptors
.
request
.
use
(
Vue
.
axios
.
interceptors
.
request
.
use
(
...
...
src/common/js/error.js
View file @
bdea5b04
...
@@ -17,7 +17,7 @@ export default {
...
@@ -17,7 +17,7 @@ export default {
errorMsg
:
function
(
response
)
{
errorMsg
:
function
(
response
)
{
let
local
=
window
.
location
.
origin
;
let
local
=
window
.
location
.
origin
;
if
(
local
.
indexOf
(
'localhost'
))
{
if
(
local
.
indexOf
(
'localhost'
))
{
local
=
'http://
gicdev.demogic
.com'
;
local
=
'http://
www.gicdev
.com'
;
}
}
if
(
response
.
errorCode
!=
1
)
{
if
(
response
.
errorCode
!=
1
)
{
if
(
response
.
errorCode
==
4
)
{
if
(
response
.
errorCode
==
4
)
{
...
...
src/components/post-upload.vue
View file @
bdea5b04
...
@@ -101,7 +101,7 @@ export default {
...
@@ -101,7 +101,7 @@ export default {
const
that
=
this
;
const
that
=
this
;
let
host
=
window
.
location
.
origin
;
let
host
=
window
.
location
.
origin
;
if
(
host
.
indexOf
(
'localhost'
)
!=
-
1
)
{
if
(
host
.
indexOf
(
'localhost'
)
!=
-
1
)
{
that
.
baseUrl
=
'http://
gicdev.demogic
.com'
;
that
.
baseUrl
=
'http://
www.gicdev
.com'
;
}
else
{
}
else
{
that
.
baseUrl
=
host
;
that
.
baseUrl
=
host
;
}
}
...
@@ -117,7 +117,7 @@ export default {
...
@@ -117,7 +117,7 @@ export default {
let
host
=
window
.
location
.
origin
;
let
host
=
window
.
location
.
origin
;
let
baseUrl
;
let
baseUrl
;
if
(
host
.
indexOf
(
'localhost'
)
!=
'-1'
)
{
if
(
host
.
indexOf
(
'localhost'
)
!=
'-1'
)
{
baseUrl
=
'http://
gicdev.demogic
.com'
;
baseUrl
=
'http://
www.gicdev
.com'
;
}
else
{
}
else
{
baseUrl
=
host
;
baseUrl
=
host
;
}
}
...
...
src/components/single-upload-center.vue
View file @
bdea5b04
...
@@ -101,7 +101,7 @@ export default {
...
@@ -101,7 +101,7 @@ export default {
const
that
=
this
;
const
that
=
this
;
let
host
=
window
.
location
.
origin
;
let
host
=
window
.
location
.
origin
;
if
(
host
.
indexOf
(
'localhost'
)
!=
-
1
)
{
if
(
host
.
indexOf
(
'localhost'
)
!=
-
1
)
{
that
.
baseUrl
=
'http://
gicdev.demogic
.com'
;
that
.
baseUrl
=
'http://
www.gicdev
.com'
;
}
else
{
}
else
{
that
.
baseUrl
=
host
;
that
.
baseUrl
=
host
;
}
}
...
@@ -117,7 +117,7 @@ export default {
...
@@ -117,7 +117,7 @@ export default {
let
host
=
window
.
location
.
origin
;
let
host
=
window
.
location
.
origin
;
let
baseUrl
;
let
baseUrl
;
if
(
host
.
indexOf
(
'localhost'
)
!=
'-1'
)
{
if
(
host
.
indexOf
(
'localhost'
)
!=
'-1'
)
{
baseUrl
=
'http://
gicdev.demogic
.com'
;
baseUrl
=
'http://
www.gicdev
.com'
;
}
else
{
}
else
{
baseUrl
=
host
;
baseUrl
=
host
;
}
}
...
...
src/components/single-upload.vue
View file @
bdea5b04
...
@@ -101,7 +101,7 @@ export default {
...
@@ -101,7 +101,7 @@ export default {
const
that
=
this
;
const
that
=
this
;
let
host
=
window
.
location
.
origin
;
let
host
=
window
.
location
.
origin
;
if
(
host
.
indexOf
(
'localhost'
)
!=
-
1
)
{
if
(
host
.
indexOf
(
'localhost'
)
!=
-
1
)
{
that
.
baseUrl
=
'http://
gicdev.demogic
.com'
;
that
.
baseUrl
=
'http://
www.gicdev
.com'
;
}
else
{
}
else
{
that
.
baseUrl
=
host
;
that
.
baseUrl
=
host
;
}
}
...
@@ -117,7 +117,7 @@ export default {
...
@@ -117,7 +117,7 @@ export default {
let
host
=
window
.
location
.
origin
;
let
host
=
window
.
location
.
origin
;
let
baseUrl
;
let
baseUrl
;
if
(
host
.
indexOf
(
'localhost'
)
!=
'-1'
)
{
if
(
host
.
indexOf
(
'localhost'
)
!=
'-1'
)
{
baseUrl
=
'http://
gicdev.demogic
.com'
;
baseUrl
=
'http://
www.gicdev
.com'
;
}
else
{
}
else
{
baseUrl
=
host
;
baseUrl
=
host
;
}
}
...
...
src/config/index.js
View file @
bdea5b04
const
host
=
window
.
location
.
origin
;
const
host
=
window
.
location
.
origin
;
// eslint-disable-next-line
// eslint-disable-next-line
export
const
baseUrl
=
host
.
indexOf
(
'localhost'
)
>
'-1'
?
'http://
gicdev.demogic
.com'
:
host
;
export
const
baseUrl
=
host
.
indexOf
(
'localhost'
)
>
'-1'
?
'http://
www.gicdev
.com'
:
host
;
export
const
ERR_OK
=
0
;
export
const
ERR_OK
=
0
;
src/request/index.js
View file @
bdea5b04
...
@@ -4,7 +4,7 @@ import { Message } from 'element-ui';
...
@@ -4,7 +4,7 @@ import { Message } from 'element-ui';
const
host
=
window
.
location
.
origin
;
const
host
=
window
.
location
.
origin
;
const
BASEURL
=
host
.
indexOf
(
'localhost'
)
>
-
1
?
'http://
gicdev.demogic
.com/gic-member-tag-web'
:
`
${
host
}
/gic-member-tag-web`
;
const
BASEURL
=
host
.
indexOf
(
'localhost'
)
>
-
1
?
'http://
www.gicdev
.com/gic-member-tag-web'
:
`
${
host
}
/gic-member-tag-web`
;
const
server
=
axios
.
create
({
const
server
=
axios
.
create
({
baseURL
:
BASEURL
,
baseURL
:
BASEURL
,
...
...
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