Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
shuchengMiniPro
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
cfld-frontend
shuchengMiniPro
Commits
a6ade69f
Commit
a6ade69f
authored
Jan 21, 2024
by
shilei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 更改接口请求地址
parent
c361f8b1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
7 deletions
+21
-7
package-lock.json
package-lock.json
+0
-0
package.json
package.json
+1
-0
config.js
src/core/config.js
+5
-6
main.js
src/main.js
+15
-1
yarn.lock
yarn.lock
+0
-0
No files found.
package-lock.json
0 → 100644
View file @
a6ade69f
This diff is collapsed.
Click to expand it.
package.json
View file @
a6ade69f
...
...
@@ -72,6 +72,7 @@
"
core-js
"
:
"^3.8.3"
,
"
flyio
"
:
"^0.6.2"
,
"
qs
"
:
"^6.11.2"
,
"
umtrack-wx
"
:
"^2.8.0"
,
"
uview-ui
"
:
"^2.0.36"
,
"
vue
"
:
">= 2.6.14 < 2.7"
,
"
vuex
"
:
"^3.2.0"
...
...
src/core/config.js
View file @
a6ade69f
let
baseUrl
;
switch
(
process
.
env
.
VUE_APP_ENV
)
{
case
'production'
:
baseUrl
=
'https://prod.postcard-api.liyeyun.com.cn'
case
"production"
:
baseUrl
=
"https://prod-postcard-api.liyeyun.com"
;
break
;
case
'development'
:
baseUrl
=
'https://test.postcard-api.liyeyun.com.cn'
case
"development"
:
baseUrl
=
"https://test.postcard-api.liyeyun.com.cn"
;
break
;
}
export
default
baseUrl
\ No newline at end of file
export
default
baseUrl
;
src/main.js
View file @
a6ade69f
...
...
@@ -4,8 +4,22 @@ import './uni.promisify.adaptor'
import
fetch
from
'./utils/request.js'
import
store
from
'./store'
import
VueCompositionAPI
from
'@vue/composition-api'
import
uma
from
'umtrack-wx'
;
import
uView
from
'uview-ui'
// import '@/utils/filters.js';
// 友盟统计
uma
.
init
({
appKey
:
'659f45d7a7208a5af19aef3e'
,
useOpenid
:
true
,
autoGetOpenid
:
true
,
debug
:
true
,
uploadUserInfo
:
true
});
uma
.
install
=
function
(
Vue
)
{
Vue
.
prototype
.
$uma
=
uma
;
}
Vue
.
use
(
uma
);
Vue
.
use
(
uView
)
// 如此配置即可
...
...
yarn.lock
View file @
a6ade69f
This diff is collapsed.
Click to expand it.
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