Skip to content

Commit

Permalink
Dev (#26)
Browse files Browse the repository at this point in the history
* 优化聊天界面

* 更新依赖

* 修改base url

* 优化接口

---------

Signed-off-by: leelaa <leedaisen@hotmail.com>
  • Loading branch information
admin8756 committed May 3, 2024
1 parent 2a7e13f commit 5662209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/ai.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default function handler(request, response) {
let { text } = request.body;
let { text } = request.query
text = text.replace(/\?/g, '!');
text = text.replace('吗', '');
text = text.replace('你','我')
Expand Down
4 changes: 2 additions & 2 deletions src/api/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 判断是否是生产环境
const baseURl = 'https://leelaa-admin.vercel.app'
const baseURl = 'https://admin.leelaa.cn';
/**
* @name request 封装请求
* @param {string} url 请求地址
Expand All @@ -13,7 +13,7 @@ export const request = async (url, options = {}) => {
return data;
})
.catch((error) => {
console.error(error)
console.error(error);
});
};

Expand Down

1 comment on commit 5662209

@vercel
Copy link

@vercel vercel bot commented on 5662209 May 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.