feat:重构模块
This commit is contained in:
21
src/components/Food/Data/FoodBasicData.vue
Normal file
21
src/components/Food/Data/FoodBasicData.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<div class="info-item card-item">
|
||||
<div class="title-info">
|
||||
<svg-icon name="home-basic"/>
|
||||
<span class="sub-title">基础信息</span>
|
||||
</div>
|
||||
|
||||
<div class="info food-basic-info">
|
||||
<el-tag v-if="foodStore.currentFoodRecipe.category">
|
||||
{{ foodStore.currentFoodRecipe.category }}
|
||||
</el-tag>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { SvgIcon } from 'vue3-common'
|
||||
import { useFoodStore } from '@/store/food.ts'
|
||||
|
||||
const foodStore = useFoodStore()
|
||||
</script>
|
||||
Reference in New Issue
Block a user