Commit ee368d5a8d2f7e4fa4da41f875ec9217aa5f8839

Authored by fengwotao
1 parent 9bf8ca70

fix: DEFECT-1621 已经在分屏模式,可以不显示该按钮

... ... @@ -20,6 +20,12 @@
20 20 import { useFingerprint } from '/@/utils/useFingerprint';
21 21 import { GetResult } from '@fingerprintjs/fingerprintjs';
22 22
  23 + const props = defineProps({
  24 + mode: {
  25 + type: String,
  26 + default: PageMode.SPLIT_SCREEN_MODE,
  27 + },
  28 + });
23 29 type CameraRecordItem = CameraRecord & {
24 30 canPlay?: boolean;
25 31 isTransform?: boolean;
... ... @@ -252,7 +258,11 @@
252 258 </Authority>
253 259 </div>
254 260 <Space>
255   - <Button type="primary" @click="handleChangeMode(PageMode.SPLIT_SCREEN_MODE)">
  261 + <Button
  262 + v-if="props.mode !== PageMode.SPLIT_SCREEN_MODE"
  263 + type="primary"
  264 + @click="handleChangeMode(PageMode.SPLIT_SCREEN_MODE)"
  265 + >
256 266 分屏模式
257 267 </Button>
258 268 <Button type="primary" @click="handleChangeMode(PageMode.LIST_MODE)">
... ...
... ... @@ -12,7 +12,11 @@
12 12
13 13 <template>
14 14 <div>
15   - <SplitScreenMode v-if="mode == PageMode.SPLIT_SCREEN_MODE" @switchMode="handleSwitchMode" />
  15 + <SplitScreenMode
  16 + :mode="mode"
  17 + v-if="mode == PageMode.SPLIT_SCREEN_MODE"
  18 + @switchMode="handleSwitchMode"
  19 + />
16 20 <ListMode v-if="mode === PageMode.LIST_MODE" @switchMode="handleSwitchMode" />
17 21 </div>
18 22 </template>
... ...