zs 1 år sedan
förälder
incheckning
a264bf5e84
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4 1
      src/components/frame/c-search.vue

+ 4 - 1
src/components/frame/c-search.vue

@@ -3,7 +3,7 @@
     <el-row>
       <el-col :span="24" class="title" v-if="is_title">
         <el-col :span="24" class="title_1">
-          <span>{{ title || $route.meta.title }}</span>
+          <span>{{ title || route.meta.title }}</span>
           <span>{{ tip }}</span>
         </el-col>
         <el-col :span="24" class="title_2">
@@ -57,7 +57,10 @@
 <script lang="ts" setup>
 import { ref, toRefs } from 'vue';
 import type { Ref } from 'vue';
+import { useRoute } from 'vue-router';
 import _ from 'lodash';
+// 路由
+const route = useRoute();
 interface fieldsItem {
   model: string;
   type: string;