马宇豪
2023-11-30 515a265a809d0c12fb5cbff39cb743f391938a41
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<template>
  <div class="container">
    <div class="header">
      <div>
        <el-icon :size="20">
          <Location />
        </el-icon>
        <span>我的位置:</span>
      </div>
      <el-breadcrumb :separator-icon="ArrowRight">
        <el-breadcrumb-item>{{ state.firstClass }}</el-breadcrumb-item>
        <el-breadcrumb-item>{{state.firstClass}}</el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <div class="main">
 
    </div>
  </div>
</template>
 
<script setup>
import {onMounted, ref, reactive, watch, onUnmounted, defineExpose} from "vue"
import { ArrowRight } from '@element-plus/icons-vue'
import {ElMessage} from "element-plus";
 
const route = useRoute()
const router = useRouter()
const redirect = ref(undefined);
const state = reactive({
  firstClass: '第一级菜单'
})
 
 
 
onMounted(()=>{
 
})
 
onUnmounted(()=>{
 
})
 
watch(route, (newRoute) => {
  redirect.value = newRoute.query && newRoute.query.redirect;
}, { immediate: true });
 
 
defineExpose({
 
})
 
</script>
 
<style lang='scss' scoped>
.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 170px;
  .header{
    display: flex;
    align-items: center;
    &>div{
      display: flex;
      align-items: center;
    }
  }
}
</style>