From bbaa54c93e1a0e22e14188b0e8fc757d62a1132b Mon Sep 17 00:00:00 2001 From: Penny <2500338766@qq.com> Date: Mon, 27 Feb 2023 21:50:34 +0800 Subject: [PATCH] =?UTF-8?q?feature:1.0:=E6=B7=BB=E5=8A=A0token=E9=89=B4?= =?UTF-8?q?=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/auth.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 api/auth.js diff --git a/api/auth.js b/api/auth.js new file mode 100644 index 0000000..fb2532d --- /dev/null +++ b/api/auth.js @@ -0,0 +1,23 @@ +import request from '@/utils/request' +const serviceTitle = '/auth' +//GET 传参需要用 params +//POST 传参需要用 data + + +// 艺术家登录 +export function login(data) { + return request({ + url: `${serviceTitle}/creatorLogin`, + method: 'post', + data + }) +} + +// 艺术家登出 +export function logout(data) { + return request({ + url: `${serviceTitle}/creatorLogout`, + method: 'post', + data + }) +} \ No newline at end of file