区分扫码枪和手动录入

This commit is contained in:
砂糖
2025-07-24 10:08:09 +08:00
parent b73c4223c7
commit 1cd943473f
5 changed files with 126 additions and 90 deletions

View File

@@ -13,7 +13,10 @@ export default {
components: { ThemePicker },
created() {
// 应用启动时全局初始化分类数据
this.$store.dispatch('category/getCategoryList');
if (this.$store.getters.token) {
this.$store.dispatch('category/getCategoryList');
}
console.log(this.$store)
},
metaInfo() {
return {