feat: 整合请求地址

This commit is contained in:
RISE
2026-05-21 15:07:46 +08:00
parent fa321e5083
commit c1337cbd80
3 changed files with 31 additions and 3 deletions

View File

@@ -38,6 +38,8 @@
</template>
<script>
import CONFIG from '../../utils/config.js';
export default {
data() {
return {
@@ -72,7 +74,7 @@
const userInfo = res.userInfo;
// 将 code 和 userInfo 发送给后台服务器
wx.request({
url: 'https://ai-api.aitools666.com/login',
url: CONFIG.getHttpUrl(CONFIG.api.login),
method: 'get',
data: {
code: code