路由权限接口更换

dev201310
zhangqun 2 years ago
parent b5e2f56a67
commit 69111738b5
  1. 2
      pages/home/home.vue
  2. 2
      pages/login/login.vue

@ -30,7 +30,7 @@
methods: {
//
getRouters() {
this.$request(getApp().globalData.baseUrl + '/api/login/getRouters', {}, 'GET').then(res => {
this.$request(getApp().globalData.baseUrl + '/api/login/getRoutersOfMiniProgram', {}, 'GET').then(res => {
if(res.code == 200) {
console.log('权限路由');
this.routeData = res.data;

@ -108,7 +108,7 @@
},
//
getRouters() {
this.$request(getApp().globalData.baseUrl + '/api/login/getRouters', {}, 'GET').then(res => {
this.$request(getApp().globalData.baseUrl + '/api/login/getRoutersOfMiniProgram', {}, 'GET').then(res => {
if(res.code == 200 && res.data.length == 1) {
uni.redirectTo({
url: '/pages/home/index?routers=' + JSON.stringify(res.data[0])

Loading…
Cancel
Save