From e312d5fcded7492d434d3bab48d31f0c3fc1dbfb Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Thu, 30 Nov 2023 15:44:19 +0800
Subject: [PATCH] 新增
---
src/api/login.js | 27 ++++++++++++++++++++++++++-
1 files changed, 26 insertions(+), 1 deletions(-)
diff --git a/src/api/login.js b/src/api/login.js
index 69a8d71..85e37b4 100644
--- a/src/api/login.js
+++ b/src/api/login.js
@@ -22,7 +22,7 @@
// 注册方法
export function register(data) {
return request({
- url: '/register',
+ url: '/system/user/addAgency',
headers: {
isToken: false
},
@@ -57,4 +57,29 @@
method: 'get',
timeout: 20000
})
+}
+
+// 获取字典
+export function getDict(type) {
+ return request({
+ url: '/system/dictType/getDictDataByType',
+ headers: {
+ isToken: false
+ },
+ method: 'get',
+ params: type
+ })
+}
+
+// 删除图片
+export function delPic(path) {
+ return request({
+ url: '/system/common/removeFile',
+ headers: {
+ isToken: false
+ },
+ method: 'delete',
+ params: path,
+ timeout: 20000
+ })
}
\ No newline at end of file
--
Gitblit v1.9.2