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

no message

parent 4302da56
...@@ -33,6 +33,6 @@ router.beforeEach((to, from, next) => { ...@@ -33,6 +33,6 @@ router.beforeEach((to, from, next) => {
}) })
// 全局路由后置守卫 // 全局路由后置守卫
router.afterEach((to, from) => { router.afterEach((to, from) => {
console.log("afterEach");
}) })
export default router; export default router;
\ No newline at end of file
...@@ -140,7 +140,7 @@ const routes = [ ...@@ -140,7 +140,7 @@ const routes = [
}, },
{ {
path: '/pages/dl_cmaterial/xzwlxx', path: '/pages/dl_cmaterial/xzwlxx',
name: 'xzwl', name: 'xzwlxx',
meta: { meta: {
title: '选择物料信息', 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') { if (process.env.NODE_ENV == 'development') {
BASE_URL = 'http://192.168.30.57:9080' // 开发环境 BASE_URL = "http://192.168.30.57:9080/xgwcs"
} else { } 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'; let staticDomainURL = BASE_URL+ '/sys/common/static';
const configService = { const configService = {
...@@ -13,4 +22,4 @@ const configService = { ...@@ -13,4 +22,4 @@ const configService = {
staticDomainURL: staticDomainURL staticDomainURL: staticDomainURL
}; };
export default configService export default configService
\ No newline at end of file
...@@ -224,8 +224,8 @@ ...@@ -224,8 +224,8 @@
}) })
} }
uni.setStorage({ uni.setStorage({
key:'Gtoken', key:'url_ley',
data:res.data.data.token, data:s,
success:function(){ success:function(){
}, },
...@@ -234,17 +234,18 @@ ...@@ -234,17 +234,18 @@
} }
}) })
uni.setStorage({ uni.setStorage({
key:'url_ley', key:'Gtoken',
data:s, data:res.data.data.token,
success:function(){ success:function(){
that.$tip.success('登录成功!')
that.$Router.replaceAll({path:'/pages/homepage/homepage'})
}, },
fail() { fail() {
} }
}) })
this.$tip.success('登录成功!')
this.$Router.replaceAll({path:'/pages/homepage/homepage'})
}else{ }else{
this.$tip.alert(res.data.message); 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