Commit 05b64067 authored by 乐宝呗666's avatar 乐宝呗666

修改登录问题

parent 66c59be7
...@@ -61,10 +61,12 @@ export default { ...@@ -61,10 +61,12 @@ export default {
localStorage.setItem("userInfo", JSON.stringify(data.user)); localStorage.setItem("userInfo", JSON.stringify(data.user));
if (isOpt == "4") { if (isOpt == "4") {
this.$router.push("/opt"); this.$router.push("/opt");
} }else if (isOpt == "2") {
if (isOpt == "2") {
this.$router.push("/commit"); this.$router.push("/commit");
}else{
this.$toast.fail("您登录的账号既不是运维账号也不是单位用户账号,不能使用H5的功能");
} }
} else { } else {
this.$toast.fail(res.data.message); this.$toast.fail(res.data.message);
} }
......
...@@ -22,8 +22,8 @@ module.exports = { ...@@ -22,8 +22,8 @@ module.exports = {
hotOnly: false, // See https://github.com/vuejs/vue-cli/blob/dev/docs/cli-service.md#configuring-proxy hotOnly: false, // See https://github.com/vuejs/vue-cli/blob/dev/docs/cli-service.md#configuring-proxy
proxy: { proxy: {
'/mall': { '/mall': {
// target: "http://192.168.110.67/mall", target: "http://192.168.110.67/mall",
target: "http://192.168.204.66:8088/mall", // 子鹏 // target: "http://192.168.204.66:8088/mall", // 子鹏
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/mall': '/' // 重写接口 '^/mall': '/' // 重写接口
......
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