fix: 项目数量不正确的情况

This commit is contained in:
kuaifan 2024-03-19 02:29:06 +09:00
parent 65db8b5703
commit 6218521dea
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@
</Dropdown>
</div>
<div
v-if="(projectSearchShow || projectTotal > 20) && windowHeight > 600"
v-if="projectKeyValue || ((projectSearchShow || projectTotal > 20) && windowHeight > 600)"
class="manage-project-search">
<div class="search-pre">
<Loading v-if="projectKeyLoading > 0"/>

View File

@ -1198,9 +1198,9 @@ export default {
url: 'project/lists',
data: callData.get()
}).then(({data}) => {
state.projectTotal = data.total_all;
dispatch("saveProject", data.data);
callData.save(data).then(ids => dispatch("forgetProject", ids))
state.projectTotal = data.total_all;
//
resolve(data)
}).catch(e => {