From 063c5dd568b43387e9691e661d12327f2c96e295 Mon Sep 17 00:00:00 2001 From: davy Date: Tue, 22 Jul 2025 11:40:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=85=AC=E5=85=B1=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E7=AE=A1=E7=90=86=E5=91=98=E7=9A=84=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/barmgr/poster/index.js | 12 ++++++ src/views/login/index.vue | 5 +-- src/views/template/beer/index.vue | 66 ++++++++++++++++++++----------- 3 files changed, 58 insertions(+), 25 deletions(-) diff --git a/src/api/barmgr/poster/index.js b/src/api/barmgr/poster/index.js index 31341b4..05f62da 100644 --- a/src/api/barmgr/poster/index.js +++ b/src/api/barmgr/poster/index.js @@ -5,6 +5,7 @@ import request from '@/utils/request.js'; */ export async function getPosterTemplateList() { const res = await request.get('/barmgr/poster/posterTemplateList'); + // const res = await request.get('/barmgr/poster/fixUserToken'); if (res.data.code === 200) { return res.data; } @@ -32,3 +33,14 @@ export async function delPosterTemplate(id) { } return Promise.reject(new Error(res.data.msg)); } + +/** + * 获取编辑器访问令牌 + */ +export async function getEditorToken(data) { + const res = await request.post('/barmgr/editor/getToken', data); + if (res.data.code === 200) { + return res.data; + } + return Promise.reject(new Error(res.data.msg)); +} diff --git a/src/views/login/index.vue b/src/views/login/index.vue index d42b593..9e2d6aa 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -3,10 +3,9 @@