fix(server): 修复物品发送接口的跨域问题
- 在角色路由中添加了自定义请求头,以解决跨域问题 - 移除了前端的多余日志输出
This commit is contained in:
@@ -58,7 +58,6 @@ onMounted(() => {
|
||||
// 提交表单
|
||||
const submitForm = (formEl) => {
|
||||
formEl.validate().then(async () => {
|
||||
console.log(form.value);
|
||||
const params = form.value
|
||||
const res = await axios.post("/api/item/send", { roleName: params.playerName, itemId: params.item, itemNum: params.itemNum })
|
||||
const result = res?.data
|
||||
|
||||
Reference in New Issue
Block a user