use pinia to replace vuex, code refactor

This commit is contained in:
MaysWind
2023-06-10 23:13:31 +08:00
parent 0d84f2857f
commit 46d85e92cd
80 changed files with 4972 additions and 4859 deletions
@@ -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;