区分扫码枪和手动录入
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user