diff --git a/package.json b/package.json index b5b43656..a0bf8991 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ }, "dependencies": { "@element-plus/icons-vue": "^1.0.0", + "@vueuse/core": "^9.1.1", "@wangeditor/editor": "^5.0.0", "@wangeditor/editor-for-vue": "^5.1.10", "axios": "^0.24.0", diff --git a/src/views/pms/goods/components/GoodsCategory.vue b/src/views/pms/goods/components/GoodsCategory.vue index b8417fbd..e946146a 100644 --- a/src/views/pms/goods/components/GoodsCategory.vue +++ b/src/views/pms/goods/components/GoodsCategory.vue @@ -42,7 +42,7 @@ import { CaretRight } from '@element-plus/icons-vue'; // API 引用 import { listCategoryOptions } from '@/api/pms/category'; -import { computed } from '@vue/reactivity'; +import { computed } from 'vue'; import { Option } from '@/types/common'; const emit = defineEmits(['next', 'update:modelValue']);