mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 15:37:33 +08:00
use pinia to replace vuex, code refactor
This commit is contained in:
@@ -39,6 +39,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { isArray } from '@/lib/common.js';
|
||||
|
||||
export default {
|
||||
props: [
|
||||
'modelValue',
|
||||
@@ -73,7 +75,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
hugeTreeViewItems() {
|
||||
if (this.$utilities.isArray(this.items)) {
|
||||
if (isArray(this.items)) {
|
||||
return this.items.length > 10;
|
||||
} else {
|
||||
let count = 0;
|
||||
|
||||
Reference in New Issue
Block a user