Browse Source

联调

master
邓宏 2 years ago
parent
commit
211623dafe
  1. 4
      common/request.js
  2. 6
      store/index.js

4
common/request.js

@ -2,9 +2,9 @@ import store from "@/store"
export function host(host='default',suffix='/plant_manage'){
var url=process.env.NODE_ENV === 'development'?{
// default:`http://dtkswx.natappfree.cc` //陈
default:`http://dpe74u.natappfree.cc` //陈
// default:`http://czixnn.natappfree.cc` //马
default:`http://usex4q.natappfree.cc` //何
// default:`http://usex4q.natappfree.cc` //何
// default:`http://192.168.0.116:8080` //孙
}:{
default:``

6
store/index.js

@ -23,9 +23,9 @@ export default new Vuex.Store({
outLogin(state){
state.userInfo={}
state.token=''
// uni.reLaunch({
// url:"/pages/home/login",
// })
uni.reLaunch({
url:"/pages/home/login",
})
},
setHeadImg(state,val){
state.userInfo.avatar=val

Loading…
Cancel
Save