Commit 7729f276 authored by 王向前's avatar 王向前

no message

parent 4302da56
......@@ -33,6 +33,6 @@ router.beforeEach((to, from, next) => {
})
// 全局路由后置守卫
router.afterEach((to, from) => {
console.log("afterEach");
})
export default router;
\ No newline at end of file
......@@ -140,7 +140,7 @@ const routes = [
},
{
path: '/pages/dl_cmaterial/xzwlxx',
name: 'xzwl',
name: 'xzwlxx',
meta: {
title: '选择物料信息',
},
......
let BASE_URL = ''
let BASE_URL = ""
let fwq=""
// 修改
try {
fwq = uni.getStorageSync('fwq');
} catch (e) {
// error
}
let newUrl = 'http://'+fwq
if (process.env.NODE_ENV == 'development') {
BASE_URL = 'http://192.168.30.57:9080' // 开发环境
BASE_URL = "http://192.168.30.57:9080/xgwcs"
} else {
BASE_URL = 'http://192.168.30.57:9080'// 生产环境
BASE_URL = "http://192.168.30.57:9080/xgwcs"
}
let staticDomainURL = BASE_URL+ '/sys/common/static';
const configService = {
......@@ -13,4 +22,4 @@ const configService = {
staticDomainURL: staticDomainURL
};
export default configService
\ No newline at end of file
export default configService
......@@ -224,8 +224,8 @@
})
}
uni.setStorage({
key:'Gtoken',
data:res.data.data.token,
key:'url_ley',
data:s,
success:function(){
},
......@@ -234,17 +234,18 @@
}
})
uni.setStorage({
key:'url_ley',
data:s,
key:'Gtoken',
data:res.data.data.token,
success:function(){
that.$tip.success('登录成功!')
that.$Router.replaceAll({path:'/pages/homepage/homepage'})
},
fail() {
}
})
this.$tip.success('登录成功!')
this.$Router.replaceAll({path:'/pages/homepage/homepage'})
}else{
this.$tip.alert(res.data.message);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment