bill 8 月之前
父节点
当前提交
6e3c843aae
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/layout/scene-list/index.vue

+ 2 - 1
src/layout/scene-list/index.vue

@@ -40,7 +40,7 @@
           type="primary"
           ghost
           style="float: right"
-          v-if="canSync(item as Scene)"
+          v-if="canSync(item as Scene) && !voffline"
           @click.stop="sync(item as Scene)"
         >
           同屏勘验
@@ -72,6 +72,7 @@ const emit = defineEmits<{ (e: "update:current", data: ModelType): void }>();
 const props = defineProps<{ current: ModelType }>();
 const showModelList = ref(true);
 
+const voffline = offline;
 const canSync = (scene: Scene) =>
   [SceneType.SWKK, SceneType.SWKJ, SceneType.SWSSMX, SceneType.SWYDMX].includes(
     scene.raw.type