|
@@ -37,10 +37,7 @@ function useList(url, beforeData = null, httpType) {
|
|
|
return global.$http
|
|
return global.$http
|
|
|
.get(url, data, { body: 'json' })
|
|
.get(url, data, { body: 'json' })
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- if (res.first) {
|
|
|
|
|
- list.value = []
|
|
|
|
|
- }
|
|
|
|
|
- list.value = [...list.value, ...res.content]
|
|
|
|
|
|
|
+ list.value = res.content
|
|
|
empty.value = res.empty
|
|
empty.value = res.empty
|
|
|
finished.value = res.last
|
|
finished.value = res.last
|
|
|
// if (!finished.value) {
|
|
// if (!finished.value) {
|
|
@@ -56,10 +53,7 @@ function useList(url, beforeData = null, httpType) {
|
|
|
return global.$http
|
|
return global.$http
|
|
|
.post(url, data, { body: 'json' })
|
|
.post(url, data, { body: 'json' })
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- if (res.first) {
|
|
|
|
|
- list.value = []
|
|
|
|
|
- }
|
|
|
|
|
- list.value = [...list.value, ...res.content]
|
|
|
|
|
|
|
+ list.value = res.content
|
|
|
empty.value = res.empty
|
|
empty.value = res.empty
|
|
|
finished.value = res.last
|
|
finished.value = res.last
|
|
|
// if (!finished.value) {
|
|
// if (!finished.value) {
|