init
This commit is contained in:
parent
44639d7a2a
commit
3926e85d6e
@ -1,9 +1,9 @@
|
|||||||
// 应用全局配置
|
// 应用全局配置
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
|
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
|
||||||
|
baseUrl: 'http://192.168.1.18:48080/admin-api',
|
||||||
baseUrl: 'http://localhost:48080/admin-api',
|
//baseUrl: 'https://www.nuoyunr.com/jx',
|
||||||
imagesUrl: 'http://localhost:48080/admin-api',
|
imagesUrl: 'https://www.nuoyunr.com/jx',
|
||||||
//baseUrl: 'http://192.168.31.54:8016/jx',
|
//baseUrl: 'http://192.168.31.54:8016/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',
|
//imagesUrl: 'http://192.168.31.54:8016/jx',
|
||||||
|
@ -107,5 +107,20 @@
|
|||||||
"uniStatistics" : {
|
"uniStatistics" : {
|
||||||
"enable" : false
|
"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
|
this.appuser.type = 0
|
||||||
request({
|
request({
|
||||||
url: '/system/auth/loginApp',
|
url: '/loginApp',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.appuser
|
data: this.appuser
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 200) {
|
||||||
uni.setStorageSync("App-Token", res.data.accessToken)
|
uni.setStorageSync("App-Token", res.token)
|
||||||
if (this.tabindex == 0) {
|
if (this.tabindex == 0) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/index/index"
|
url: "/pages/index/index"
|
||||||
|
Loading…
Reference in New Issue
Block a user