release: freeze demo v1.1.0 2026-10-19
CI/CD Pipeline / Backend Build & Test (push) Canceled after 0s
CI/CD Pipeline / Admin Web Build (push) Canceled after 0s
CI/CD Pipeline / Mini Program Compile Check (push) Canceled after 0s
CI/CD Pipeline / Migration Validation (push) Canceled after 0s
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Canceled after 0s
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Canceled after 0s
CI/CD Pipeline / E2E (live stack) (push) Canceled after 0s
CI/CD Pipeline / Backend Build & Test (push) Canceled after 0s
CI/CD Pipeline / Admin Web Build (push) Canceled after 0s
CI/CD Pipeline / Mini Program Compile Check (push) Canceled after 0s
CI/CD Pipeline / Migration Validation (push) Canceled after 0s
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Canceled after 0s
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Canceled after 0s
CI/CD Pipeline / E2E (live stack) (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<template>
|
||||
<div class="operator-layout">
|
||||
<van-nav-bar
|
||||
:title="title"
|
||||
left-arrow
|
||||
fixed
|
||||
placeholder
|
||||
@click-left="onBack"
|
||||
>
|
||||
<template #right>
|
||||
<span class="operator-layout__logout" @click="onLogout">退出</span>
|
||||
</template>
|
||||
</van-nav-bar>
|
||||
<div class="operator-layout__body">
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useRouter } from 'vue-router'
|
||||
import { showConfirmDialog } from 'vant'
|
||||
import { useOperatorStore } from '@/stores/operator'
|
||||
|
||||
withDefaults(defineProps<{ title?: string }>(), { title: '红娘工作台' })
|
||||
const router = useRouter()
|
||||
const operatorStore = useOperatorStore()
|
||||
|
||||
function onBack() {
|
||||
router.replace('/operator/workbench')
|
||||
}
|
||||
|
||||
async function onLogout() {
|
||||
try {
|
||||
await showConfirmDialog({ title: '退出登录', message: '确定要退出红娘工作台吗?' })
|
||||
} catch {
|
||||
return
|
||||
}
|
||||
operatorStore.logout()
|
||||
router.replace('/operator/login')
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.operator-layout {
|
||||
min-height: 100vh;
|
||||
background: var(--mini-bg);
|
||||
}
|
||||
.operator-layout__body {
|
||||
min-height: calc(100vh - 46px);
|
||||
}
|
||||
.operator-layout__logout {
|
||||
color: var(--mini-text-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user