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