变更
This commit is contained in:
@@ -340,6 +340,7 @@ watch(
|
||||
{ deep: true, immediate: true }
|
||||
);
|
||||
watch(tableDataSource, () => {
|
||||
console.log("tableDataSource更新", tableDataSource.value);
|
||||
if (!props.page || props.serverpage) {
|
||||
datalist.value = tableDataSource.value;
|
||||
} else {
|
||||
@@ -362,12 +363,10 @@ const change = function (page: any) {
|
||||
emit("change", page);
|
||||
} else {
|
||||
pagecurrent = page.current;
|
||||
datalist.value = [
|
||||
...tableDataSource.value.slice(
|
||||
page.limit * (page.current - 1),
|
||||
page.limit * page.current
|
||||
)
|
||||
];
|
||||
datalist.value = tableDataSource.value.slice(
|
||||
page.limit * (page.current - 1),
|
||||
page.limit * page.current
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user