8 行
928 B
Vue
8 行
928 B
Vue
<template><div style="padding: 12px 20px"><header style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px"><div><strong>数据开发 / 调度编排</strong><p style="margin: 6px 0; font-size: 12px; color: var(--el-text-color-secondary)">真实编辑器 · 合成数据验证 · 不连接业务 API</p></div><div><el-button @click="theme">切换亮暗</el-button><el-button @click="interrupt">模拟布局响应中断</el-button><el-button @click="reopen">重开已存流程</el-button></div></header><router-view /></div></template>
|
|
<script setup lang="ts">
|
|
import { ElMessage } from 'element-plus';
|
|
function theme() { document.documentElement.classList.toggle('dark'); }
|
|
function interrupt() { sessionStorage.setItem('schedule-review-interrupt', '1'); ElMessage.info('下一次布局保存会在模拟服务器提交后丢失响应'); }
|
|
function reopen() { location.reload(); }
|
|
</script>
|