feat: 菜单增加前端路由名字段

This commit is contained in:
2026-08-24 16:16:23 +08:00
parent 2de29b0ac0
commit 9a8e4920dc
17 changed files with 212 additions and 169 deletions
@@ -18,11 +18,7 @@ const ChartIcon = createIconifyIcon('solar:chart-2-linear');
const DownloadIcon = createIconifyIcon('solar:file-download-linear');
const goWorkbench = () => {
router.push('/dashboard/workbench');
};
const goImportTask = () => {
router.push('/import/order');
router.push({ name: 'Workbench' });
};
</script>
@@ -77,9 +73,6 @@ const goImportTask = () => {
<div class="btn-group">
<button class="btn-primary" @click="goWorkbench">工作台</button>
<button class="btn-secondary" type="button" @click="goImportTask">
导入订单
</button>
</div>
</div>
@@ -294,15 +287,11 @@ const goImportTask = () => {
margin-top: clamp(20px, 3vw, 30px);
}
.btn-primary,
.btn-secondary {
.btn-primary {
border-radius: 8px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-primary {
padding: 12px 30px;
border: none;
color: #fff;
@@ -319,13 +308,6 @@ const goImportTask = () => {
box-shadow: 0 10px 24px rgb(37 99 235 / 30%);
}
.btn-secondary {
padding: 12px 25px;
border: 1px solid var(--border-color);
color: var(--text-dark);
background: var(--surface-strong);
}
.flowchart-wrap {
flex: 1 1 480px;
min-width: 0;
@@ -575,8 +557,7 @@ const goImportTask = () => {
flex-direction: column;
}
.btn-primary,
.btn-secondary {
.btn-primary {
width: 100%;
text-align: center;
}