From dd40769e3c2dac33693fa5765b216540a4ce5cf9 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期五, 07 六月 2024 15:56:55 +0800 Subject: [PATCH] feat:多产品称重页面修改 --- api/index.js | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/api/index.js b/api/index.js index 24f4487..28b5307 100644 --- a/api/index.js +++ b/api/index.js @@ -1,4 +1,4 @@ -import { fetch } from '@/api/request.js' +import { fetch,fetchId } from '@/api/request.js' const typeObj = { headerGET: { 'Content-type': 'application/x-www-from-urlencoded' }, @@ -33,6 +33,12 @@ opt.data = params return fetch(url, opt) } +export const reqGetId = (url, params, opt = {}) => { + opt.header = typeObj['headerGET'] + opt.method = 'GET' + opt.data = params + return fetchId(url, opt) +} // urlParam鏄嫾鎺ヨ矾寰勭殑鍙傛暟 export const reqGet2 = (url, params, opt = {}) => { -- Gitblit v1.9.1