修改url
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
|
||||
<!-- 消息列表 -->
|
||||
<scroll-view scroll-y class="message-list" :scroll-top="scrollTop" scroll-with-animation="true"
|
||||
show-scrollbar="false" enhanced="true" bounces="true"
|
||||
@scroll="onScroll" @scrolltoupper="loadMoreHistory" upper-threshold="50">
|
||||
show-scrollbar="false" enhanced="true" bounces="true" @scroll="onScroll" @scrolltoupper="loadMoreHistory"
|
||||
upper-threshold="50">
|
||||
<!-- 加载提示 -->
|
||||
<view v-if="isLoadingHistory" class="loading-history">
|
||||
<text>正在加载历史记录...</text>
|
||||
@@ -254,13 +254,16 @@
|
||||
this.scrollTop = 0;
|
||||
this.$nextTick(() => {
|
||||
this.scrollTop = targetScrollTop;
|
||||
console.log('forceScrollToBottom: 设置scrollTop为', targetScrollTop);
|
||||
console.log('forceScrollToBottom: 设置scrollTop为',
|
||||
targetScrollTop);
|
||||
|
||||
// 延迟再次确保滚动到底部
|
||||
setTimeout(() => {
|
||||
const finalScrollTop = (res.scrollHeight || 99999) + 1000;
|
||||
const finalScrollTop = (res.scrollHeight ||
|
||||
99999) + 1000;
|
||||
this.scrollTop = finalScrollTop;
|
||||
console.log('forceScrollToBottom: 延迟设置scrollTop完成', finalScrollTop);
|
||||
console.log('forceScrollToBottom: 延迟设置scrollTop完成',
|
||||
finalScrollTop);
|
||||
}, 100);
|
||||
});
|
||||
} else {
|
||||
|
@@ -3,12 +3,12 @@ import axios from 'axios'
|
||||
import {
|
||||
getToken
|
||||
} from './auth'
|
||||
|
||||
import config from '@/config'
|
||||
const service = axios.create({
|
||||
// baseURL: 'http://localhost:9090/dev-api/aitutor/aichat',
|
||||
// baseURL: 'http://localhost:8088/aitutor/aichat',
|
||||
// baseURL: 'http://localhost:8080/aitutor/aichat',
|
||||
baseURL: 'http://localhost:8088',
|
||||
baseURL: config.baseUrl,
|
||||
timeout: 15000,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
@@ -2,10 +2,10 @@
|
||||
import {
|
||||
getToken
|
||||
} from '@/utils/auth';
|
||||
|
||||
import config from '@/config'
|
||||
const BASE_URL = (() => {
|
||||
// #ifdef H5
|
||||
return 'http://localhost:8088';
|
||||
return config.baseUrl;
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
// return 'http://192.168.x.x:8088'; // 换成你的电脑 IP
|
||||
|
Reference in New Issue
Block a user