From a37ed14f5c80809753c1c77e931b47a8071b78a1 Mon Sep 17 00:00:00 2001 From: mo-bai <1873032855@qq.com> Date: Fri, 29 Apr 2022 14:29:13 +0800 Subject: [PATCH] bug --- pages/digital-workshops/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/digital-workshops/index.vue b/pages/digital-workshops/index.vue index 47e6c77..c7725e2 100644 --- a/pages/digital-workshops/index.vue +++ b/pages/digital-workshops/index.vue @@ -125,7 +125,6 @@ export default { { id: 3, name: '覆膜机', working: 1, free: 1 } ], cameraList: [], - refresh: this.$store.state.userInfo.userId, hasCompany: this.$store.state.companyInfo.id } }, @@ -151,7 +150,14 @@ export default { } }, refresh(val) { + console.log('refresh', val) if (val) { + } + } + }, + computed: { + refresh() { + if (this.$store.state.userInfo.userId) { this.getFactoryList() } } @@ -219,7 +225,7 @@ export default { return } // 先判断是否时演示工厂 - go2('add-device', { id: this.factoryId, operation: 'edit' }) + go2('device-operation', { id: this.factoryId, operation: 'add' }) }, // 获取摄像头列表 getCameraList() {