init
This commit is contained in:
parent
44639d7a2a
commit
3926e85d6e
@ -1,9 +1,9 @@
|
||||
// 应用全局配置
|
||||
module.exports = {
|
||||
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
|
||||
|
||||
baseUrl: 'http://localhost:48080/admin-api',
|
||||
imagesUrl: 'http://localhost:48080/admin-api',
|
||||
baseUrl: 'http://192.168.1.18:48080/admin-api',
|
||||
//baseUrl: 'https://www.nuoyunr.com/jx',
|
||||
imagesUrl: 'https://www.nuoyunr.com/jx',
|
||||
//baseUrl: 'http://192.168.31.54:8016/jx',
|
||||
//baseUrl: 'http://192.168.31.54:8016/jx',
|
||||
//imagesUrl: 'http://192.168.31.54:8016/jx',
|
||||
|
@ -107,5 +107,20 @@
|
||||
"uniStatistics" : {
|
||||
"enable" : false
|
||||
},
|
||||
"vueVersion" : "2"
|
||||
"vueVersion" : "2",
|
||||
"h5" : {
|
||||
"router" : {
|
||||
"mode" : "hash",
|
||||
"base" : "./"
|
||||
},
|
||||
"devServer" : {
|
||||
"port" : 80
|
||||
},
|
||||
"optimization" : {
|
||||
"treeShaking" : {
|
||||
"enable" : true
|
||||
}
|
||||
},
|
||||
"title" : "孑医测评"
|
||||
}
|
||||
}
|
||||
|
@ -131,12 +131,12 @@
|
||||
}
|
||||
this.appuser.type = 0
|
||||
request({
|
||||
url: '/system/auth/loginApp',
|
||||
url: '/loginApp',
|
||||
method: 'post',
|
||||
data: this.appuser
|
||||
}).then((res) => {
|
||||
if (res.code == 0) {
|
||||
uni.setStorageSync("App-Token", res.data.accessToken)
|
||||
if (res.code == 200) {
|
||||
uni.setStorageSync("App-Token", res.token)
|
||||
if (this.tabindex == 0) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/index/index"
|
||||
|
Loading…
Reference in New Issue
Block a user