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 @@