|
@@ -24,7 +24,7 @@ import { Message } from 'element-ui';
|
|
|
});
|
|
|
|
|
|
*/
|
|
|
-export function requestData (options) {
|
|
|
+export function requestData(options) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
|
|
if (options.showLoading) {
|
|
@@ -296,7 +296,7 @@ httpService.interceptors.response.use(
|
|
|
* url: 接口地址
|
|
|
* params: 参数,格式如下
|
|
|
* */
|
|
|
-export function get (url, params = {}) {
|
|
|
+export function get(url, params = {}) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
httpService({
|
|
|
url: url,
|
|
@@ -316,7 +316,7 @@ export function get (url, params = {}) {
|
|
|
* url: 接口地址
|
|
|
* params: 参数,格式如下
|
|
|
* */
|
|
|
-export function post (url, params = {}) {
|
|
|
+export function post(url, params = {}) {
|
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
httpService({
|
|
@@ -337,7 +337,7 @@ export function post (url, params = {}) {
|
|
|
* url: 接口地址
|
|
|
* params: 参数,格式如下
|
|
|
* */
|
|
|
-export function get_L (url, params = {}) {
|
|
|
+export function get_L(url, params = {}) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
httpService_L({
|
|
|
url: url,
|
|
@@ -357,7 +357,7 @@ export function get_L (url, params = {}) {
|
|
|
* url: 接口地址
|
|
|
* params: 参数,格式如下
|
|
|
* */
|
|
|
-export function post_L (url, params = {}) {
|
|
|
+export function post_L(url, params = {}) {
|
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
httpService_L({
|
|
@@ -376,7 +376,7 @@ export function post_L (url, params = {}) {
|
|
|
* url: 接口地址
|
|
|
* params: 参数,格式如下
|
|
|
* */
|
|
|
-export function postL (url, params = {}) {
|
|
|
+export function postL(url, params = {}) {
|
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
axios.create({
|