权限调整

master
zhangdi 3 months ago
parent e61f720f96
commit a617767e94
  1. 8
      src/api/authorization.js
  2. 7
      src/page/login/authorization.vue

@ -1,9 +1,9 @@
import request from '@/router/axios'; import request from '@/router/axios';
export const getUserinfo = params => { export const getUserinfo = data => {
return request({ return request({
url: '/smartpark/user/getUserInfo', url: '/smartpark/AES/decryptAndGetUser',
method: 'get', method: 'post',
params: params data
}) })
} }

@ -19,7 +19,9 @@ computed: {
}, },
methods: { methods: {
getUserinfo() { getUserinfo() {
getUserinfo().then((res) => { let data = this.$route.query.data;
getUserinfo(this.$route.query.data).then((res) => {
this.$store.dispatch("user/setUserInfo", res); this.$store.dispatch("user/setUserInfo", res);
// console.log("", res.data.result); // console.log("", res.data.result);
const loading = this.$loading({ const loading = this.$loading({
@ -32,8 +34,7 @@ computed: {
.then(() => { .then(() => {
console.log("登录成功", res.data.result); console.log("登录成功", res.data.result);
console.log("获取用户信息", this.tagWel.value); console.log("获取用户信息", this.tagWel.value);
// this.$router.push({ path: "/firstOrder/list" }); // this.$router.push({path: this.tagWel.value});
this.$router.push({path: this.tagWel.value});
loading.close(); loading.close();
}) })
.catch(() => { .catch(() => {

Loading…
Cancel
Save