chenrui 4 years ago
parent
commit
e5ee6f6c4b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/api/login.js
  2. 1 1
      src/config/router.config.js

+ 1 - 1
src/api/login.js

@@ -4,7 +4,7 @@ import { axios } from '@/utils/request'
 export function login ({ username, password }) {
   return axios({
     url: 'login',
-    headers: { 'content-type': 'application/x-www-form-urlencoded' },
+    headers: { 'content-type': 'application/x-www-form-urlencoded', 'App-Type': 1 },
     data: `username=${username}&password=${password}`,
     method: 'post'
   }).then(res => res.data)

+ 1 - 1
src/config/router.config.js

@@ -48,7 +48,7 @@ export const asyncRouterMap = [
       component: PageView,
       meta: {
         title: '优惠券管理',
-        icon: 'setting',
+        icon: 'shopping',
         permission: 'M_coupon_0'
       },
       children: [{