update
This commit is contained in:
@@ -3,7 +3,6 @@ export default defineEventHandler(async (event) => {
|
||||
const { public: { apiBase } } = useRuntimeConfig();
|
||||
const token = getCookie(event, 'token');
|
||||
const body = await readBody(event);
|
||||
console.log('bod' , body);
|
||||
try {
|
||||
const data = await $fetch(`${apiBase}/ticket/message`, {
|
||||
method: 'POST',
|
||||
@@ -13,7 +12,6 @@ console.log('bod' , body);
|
||||
},
|
||||
body
|
||||
});
|
||||
console.log('new :', data);
|
||||
return data;
|
||||
} catch (error) {
|
||||
// if (error.statusCode == 401) {
|
||||
|
||||
Reference in New Issue
Block a user