删除权限

This commit is contained in:
砂糖
2025-07-19 17:29:15 +08:00
parent 245bc4973b
commit 5bd163d8cd
19 changed files with 253 additions and 221 deletions

View File

@@ -0,0 +1,28 @@
<template>
<span v-if="category">
<slot :category="category">
{{ category.categoryName }}
</slot>
</span>
<span v-else>--</span>
</template>
<script>
import { mapState } from 'vuex';
export default {
name: 'CategoryRenderer',
props: {
categoryId: {
type: [String, Number],
required: true
}
},
computed: {
...mapState('category', ['categoryList']),
category() {
return this.categoryList.find(cat => String(cat.categoryId) === String(this.categoryId));
}
}
};
</script>