diff --git a/gold-system/src/util/http.js b/gold-system/src/util/http.js index 31d1d3f..8be5172 100644 --- a/gold-system/src/util/http.js +++ b/gold-system/src/util/http.js @@ -1,7 +1,7 @@ import request from './request' export default function requestHandler(options) { - const { method = 'get', url, data = {}, params = {}, headers = {} } = options + const { method = 'post', url, data = {}, params = {}, headers = {} } = options return request({ method, diff --git a/gold-system/src/views/index.vue b/gold-system/src/views/index.vue index 9ff7a6f..a116f95 100644 --- a/gold-system/src/views/index.vue +++ b/gold-system/src/views/index.vue @@ -1,70 +1,67 @@