feat(scene-editor): 添加在新标签页打开场景编辑器的功能按钮,便于用户多窗口操作
This commit is contained in:
parent
8fdd3c3a89
commit
aedaf86c23
@ -36,6 +36,10 @@ const props = defineProps<Props>();
|
||||
const { t } = useI18n();
|
||||
const { isConverting, convertSmapToScene, exportSceneToSmap, convertSceneToIray } = useMapConversion();
|
||||
|
||||
const openInNewTab = () => {
|
||||
window.open(window.location.href, '_blank');
|
||||
};
|
||||
|
||||
const normalizeSceneJson = (raw: unknown): unknown => {
|
||||
if (raw == null) return raw;
|
||||
|
||||
@ -745,6 +749,7 @@ const handleFloorChange = async (value: any) => {
|
||||
<a-typography-text class="title">{{ title }} --场景编辑</a-typography-text>
|
||||
<a-space align="center">
|
||||
<a-button @click="backToCards"> 返回 </a-button>
|
||||
<a-button @click="openInNewTab"> 在新标签页打开 </a-button>
|
||||
<a-button type="primary" :loading="isSaving" @click="handleSaveViewState"> 保存比例 </a-button>
|
||||
<a-divider v-if="isMultiFloor" type="vertical" />
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user