优化加载下一页

This commit is contained in:
weicw
2023-08-23 18:34:13 +08:00
parent 45be0a84fd
commit ed6fea7bd1
3 changed files with 4 additions and 4 deletions

View File

@@ -9,12 +9,12 @@ module.exports = {
appSecret: '1f1d186d98ea4620ac65afbf34940051', appSecret: '1f1d186d98ea4620ac65afbf34940051',
// 开发环境 // 开发环境
apiUrl: "http://127.0.0.1:9090/api", // apiUrl: "http://127.0.0.1:9090/api",
// socketUrl: 'ws://localhost:9190', // socketUrl: 'ws://localhost:9190',
// fileUrl: 'https://file.wsdns.cn', // fileUrl: 'https://file.wsdns.cn',
// 测试环境 // 测试环境
// apiUrl: 'https://server.gxwebsoft.com/api', apiUrl: 'https://server.gxwebsoft.com/api',
socketUrl: 'wss://server.gxwebsoft.com', socketUrl: 'wss://server.gxwebsoft.com',
fileUrl: 'https://file.wsdns.cn', fileUrl: 'https://file.wsdns.cn',

View File

@@ -198,7 +198,7 @@
return d return d
}) })
// 合并新数据 // 合并新数据
app.list = app.list.concat(list) app.list.push.apply(app.list,list);
if (result.data.count > app.list.length) { if (result.data.count > app.list.length) {
app.canReset = true app.canReset = true
} else { } else {

View File

@@ -194,7 +194,7 @@
return d return d
}) })
// 合并新数据 // 合并新数据
app.list = app.list.concat(list) app.list.push.apply(app.list,list);
if (result.data.count > app.list.length) { if (result.data.count > app.list.length) {
app.canReset = true app.canReset = true
} else { } else {