Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7e28a9ad
authored
Feb 28, 2022
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
cabc5a96
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
linkwe-ui/.env.development
linkwe-ui/.env.production
linkwe-ui/.env.test
linkwe-ui/package.json
linkwe-ui/src/config.js
linkwe-ui/.env.development
View file @
7e28a9a
...
@@ -5,6 +5,7 @@ ENV = 'development'
...
@@ -5,6 +5,7 @@ ENV = 'development'
VUE_APP_DOMAIN = 'http://demo.linkwechat.cn'
VUE_APP_DOMAIN = 'http://demo.linkwechat.cn'
VUE_APP_BASE_API = 'http://demo.linkwechat.cn/dev-api'
VUE_APP_BASE_API = 'http://demo.linkwechat.cn/dev-api'
VUE_APP_SYSTEM_API = '/dev-api'
VUE_APP_SYSTEM_API = '/dev-api'
VUE_APP_KF_API = '/dev-kf'
# 路由基础路径
# 路由基础路径
VUE_APP_BASE_URL = '/'
VUE_APP_BASE_URL = '/'
\ No newline at end of file
\ No newline at end of file
linkwe-ui/.env.production
View file @
7e28a9a
...
@@ -3,8 +3,9 @@ ENV = 'production'
...
@@ -3,8 +3,9 @@ ENV = 'production'
# 基础api
# 基础api
VUE_APP_DOMAIN = 'http://demo.linkwechat.cn'
VUE_APP_DOMAIN = 'http://demo.linkwechat.cn'
VUE_APP_BASE_API = 'http://demo.linkwechat.cn/dev-api'
VUE_APP_BASE_API = 'http://demo.linkwechat.cn/prod-api'
VUE_APP_SYSTEM_API = '/dev-api'
VUE_APP_SYSTEM_API = '/prod-api'
VUE_APP_KF_API = '/prod-kf'
# 路由基础路径
# 路由基础路径
VUE_APP_BASE_URL = '/dev/'
\ No newline at end of file
\ No newline at end of file
VUE_APP_BASE_URL = '/'
\ No newline at end of file
\ No newline at end of file
linkwe-ui/.env.test
View file @
7e28a9a
...
@@ -5,6 +5,7 @@ ENV = 'test'
...
@@ -5,6 +5,7 @@ ENV = 'test'
VUE_APP_DOMAIN = 'http://demo.linkwechat.cn'
VUE_APP_DOMAIN = 'http://demo.linkwechat.cn'
VUE_APP_BASE_API = 'http://demo.linkwechat.cn/dev-api'
VUE_APP_BASE_API = 'http://demo.linkwechat.cn/dev-api'
VUE_APP_SYSTEM_API = '/dev-api'
VUE_APP_SYSTEM_API = '/dev-api'
VUE_APP_KF_API = '/dev-kf'
# 路由基础路径
# 路由基础路径
VUE_APP_BASE_URL = '/dev/'
VUE_APP_BASE_URL = '/dev/'
linkwe-ui/package.json
View file @
7e28a9a
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"scripts"
:
{
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"serve"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"build"
:
"vue-cli-service build"
,
"
build:
test"
:
"vue-cli-service build --mode test"
,
"test"
:
"vue-cli-service build --mode test"
,
"preview"
:
"node build/index.js --preview"
,
"preview"
:
"node build/index.js --preview"
,
"lint"
:
"eslint --ext .js,.vue src"
,
"lint"
:
"eslint --ext .js,.vue src"
,
"test:unit"
:
"jest --clearCache && vue-cli-service test:unit"
,
"test:unit"
:
"jest --clearCache && vue-cli-service test:unit"
,
...
...
linkwe-ui/src/config.js
View file @
7e28a9a
...
@@ -31,9 +31,9 @@ window.CONFIG = {
...
@@ -31,9 +31,9 @@ window.CONFIG = {
services
:
{
services
:
{
wecom
:
'/wecom'
,
wecom
:
'/wecom'
,
kf
:
'/dev-kf'
,
kf
:
process
.
env
.
VUE_APP_KF_API
,
system
:
process
.
env
.
VUE_APP_SYSTEM_API
,
system
:
process
.
env
.
VUE_APP_SYSTEM_API
,
common
:
'/common'
common
:
'/common'
,
},
},
/**
/**
...
@@ -45,7 +45,7 @@ window.CONFIG = {
...
@@ -45,7 +45,7 @@ window.CONFIG = {
get
headers
()
{
get
headers
()
{
return
{
Authorization
:
'Bearer '
+
getToken
()
}
return
{
Authorization
:
'Bearer '
+
getToken
()
}
}
}
,
}
}
// 统一为img的src不是绝对地址的拼接接口地址
// 统一为img的src不是绝对地址的拼接接口地址
document
.
addEventListener
(
document
.
addEventListener
(
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment