feat: ✨ 新增字典和字典展示功能
新增字典和字典展示功能
This commit is contained in:
@@ -16,7 +16,7 @@ export default function request<T>(options: UniApp.RequestOptions): Promise<T> {
|
||||
...options.header,
|
||||
Authorization: getToken() ? `Bearer ${getToken()}` : "",
|
||||
},
|
||||
data: handleData(options.data, options.method),
|
||||
data: handleData(options.data, options.method || "GET"),
|
||||
success: (response) => {
|
||||
console.log("success response", response);
|
||||
const resData = response.data as ResponseData<T>;
|
||||
|
||||
Reference in New Issue
Block a user