You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

392 B

用法

Get 请求

import { http } from "@/utils/http";

// params传参
http.request('get', '/xxx', { params: param });

// url拼接传参
http.request('get', '/xxx?message=' + msg);

Post 请求

import { http } from "@/utils/http";

// params传参
http.request('post', '/xxx', { params: param });

// data传参
http.request('post', '/xxx', { data: param });